forked from ports/contrib
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Description: Midori is a lightweight web browser.
|
|
# URL: http://www.midori-browser.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Brett Goulder, predatorfreak at dcaf-security dot org
|
|
# Depends on: aria2 desktop-file-utils gcr gst-libav gst-plugins-good libnotify webkitgtk xorg-libxscrnsaver
|
|
|
|
name=midori
|
|
version=0.5.11
|
|
release=2
|
|
source=(http://midori-browser.org/downloads/${name}_${version}_all_.tar.bz2)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# The latest release of vala is a bit stricter than the previous one
|
|
sed 's/protected Tally/public Tally/g' -i midori/midori-notebook.vala
|
|
sed 's/%d other files/%u other files/g' -i extensions/transfers.vala
|
|
for f in transfers adblock/widgets apps history-list notes; do
|
|
sed 's/.remove (iter/.remove (ref iter/g' -i "extensions/$f.vala"
|
|
done
|
|
|
|
install -d build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DHALF_BRO_INCOM_WEBKIT2=ON \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_FLAGS="$CFLAGS -w" \
|
|
-DUSE_ZEITGEIST=OFF \
|
|
-G Ninja
|
|
|
|
ninja -j ${JOBS-1}
|
|
DESTDIR=$PKG ninja install
|
|
|
|
rm -r $PKG/usr/share/{doc,locale}
|
|
}
|