contrib/appstream-glib/Pkgfile

30 lines
1007 B
Plaintext

# Description: Objects and methods for reading and writing AppStream metadata
# URL: https://people.freedesktop.org/~hughsient/appstream-glib/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gtk3 json-glib keyutils libsoup libyaml
# Optional: docbook-xsl krb5 snowball
name=appstream-glib
version=0.8.2
release=1
source=(https://people.freedesktop.org/~hughsient/appstream-glib/releases/$name-$version.tar.xz)
build() {
prt-get isinst snowball && PKGMK_APPSTREAM_GLIB+=' -D stemmer=true' || PKGMK_APPSTREAM_GLIB+=' -D stemmer=false'
prt-get isinst docbook-xsl && PKGMK_APPSTREAM_GLIB+=' -D man=true' || PKGMK_APPSTREAM_GLIB+=' -D man=false'
meson setup $name-$version build $PKGMK_APPSTREAM_GLIB \
-D prefix=/usr \
-D buildtype=plain \
--wrap-mode nodownload \
--auto-features disabled \
-D b_lto=true \
-D b_pie=true \
-D rpm=false \
-D gtk-doc=false
meson compile -C build
DESTDIR=$PKG meson install -C build
rm -fr $PKG/usr/share/locale
}