contrib/midori/Pkgfile
2020-07-12 18:48:11 +00:00

32 lines
801 B
Plaintext

# Description: Midori is a lightweight web browser.
# URL: https://www.midori-browser.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: aria2 desktop-file-utils gcr gst-libav gst-plugins-good json-glib libnotify libpeas webkitgtk xorg-libxscrnsaver
name=midori
version=9.0
release=1
source=(https://github.com/midori-browser/core/releases/download/v$version/$name-v$version.tar.gz)
build() {
cd $name-v$version
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 -fPIC -w" \
-DVALA_CFLAGS="$CFLAGS -fPIC -w" \
-DUSE_ZEITGEIST=OFF \
-G Ninja
ninja -j ${JOBS-1}
DESTDIR=$PKG ninja install
rm -r $PKG/usr/share/{doc,locale}
}