contrib/appstream-glib/Pkgfile

30 lines
1007 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 libsoup libyaml
# Optional: docbook-xsl krb5 snowball
2019-06-11 23:45:35 +02:00
name=appstream-glib
2022-11-06 13:25:36 +01:00
version=0.8.2
2022-07-17 21:21:12 +02:00
release=1
2019-06-11 23:45:35 +02:00
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'
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 \
--wrap-mode nodownload \
--auto-features disabled \
-D b_lto=true \
-D b_pie=true \
2021-01-23 19:15:40 +01:00
-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
2021-12-14 11:10:49 +01:00
2019-08-07 22:46:40 +02:00
rm -fr $PKG/usr/share/locale
2019-06-11 23:45:35 +02:00
}