contrib/midori/Pkgfile

25 lines
857 B
Plaintext

# Description: Midori is a lightweight web browser.
# URL: https://www.midori-browser.org/
# Maintainer: UNMAINTAINED
# Depends on: aria2 desktop-file-utils gcr3 gst-libav gst-plugins-good json-glib libnotify libpeas webkitgtk xorg-libxscrnsaver
name=midori
version=9.0
release=1
_shasum=0cc28643593f53c47b453838152dcbe35a9a287bff38bda830844eb8f321a4f48c99b21e16a9b07bebdd0abc936d88fd759c3222a36325aa667a28ae00148be3
source=(https://src.fedoraproject.org/repo/pkgs/$name/$name-v$version.tar.gz/sha512/$_shasum/$name-v$version.tar.gz)
build() {
cmake -S $name-v$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC -w" \
-Wno-dev
cmake --build build -j ${JOBS-1}
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/{doc,locale}
}