contrib/appstream-glib/Pkgfile

24 lines
919 B
Plaintext
Raw Normal View History

2019-06-11 23:45:35 +02:00
# 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 krb5 libsoup libyaml
# Optional: docbook-xsl snowball
2019-06-11 23:45:35 +02:00
name=appstream-glib
2020-09-08 13:45:00 +02:00
version=0.7.18
2019-06-11 23:45:35 +02:00
release=1
source=(https://people.freedesktop.org/~hughsient/appstream-glib/releases/$name-$version.tar.xz)
build() {
2021-01-23 19:15:40 +01:00
[[ -f /usr/lib/libstemmer.so ]] && PKGMK_APPSTREAM_GLIB+=' -D stemmer=true' || PKGMK_APPSTREAM_GLIB+=' -D stemmer=false'
[[ -e /usr/share/xml/docbook ]] && PKGMK_APPSTREAM_GLIB+=' -D man=true' || PKGMK_APPSTREAM_GLIB+=' -D man=false'
2020-11-03 18:25:58 +01:00
meson setup $name-$version build $PKGMK_APPSTREAM_GLIB \
2021-01-23 19:15:40 +01:00
-D prefix=/usr \
-D buildtype=plain \
-D rpm=false \
-D gtk-doc=false
2020-11-03 18:25:58 +01:00
meson compile -C build
DESTDIR=$PKG meson install -C build
2019-08-07 22:46:40 +02:00
rm -fr $PKG/usr/share/locale
2019-06-11 23:45:35 +02:00
}