summaryrefslogtreecommitdiff
path: root/appstream-glib/Pkgfile
blob: 0f88782e67d4f9ccf7df65cedceb544de3d2ecae (plain)
    1 # Description: Objects and methods for reading and writing AppStream metadata
    2 # URL: https://people.freedesktop.org/~hughsient/appstream-glib/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: gtk3 json-glib keyutils libsoup libyaml
    5 # Optional: docbook-xsl krb5 snowball
    6 
    7 name=appstream-glib
    8 version=0.7.18
    9 release=3
   10 source=(https://people.freedesktop.org/~hughsient/appstream-glib/releases/$name-$version.tar.xz)
   11 
   12 build() {
   13   prt-get isinst snowball && PKGMK_APPSTREAM_GLIB+=' -D stemmer=true' || PKGMK_APPSTREAM_GLIB+=' -D stemmer=false'
   14   prt-get isinst docbook-xsl && PKGMK_APPSTREAM_GLIB+=' -D man=true' || PKGMK_APPSTREAM_GLIB+=' -D man=false'
   15 
   16   meson setup $name-$version build $PKGMK_APPSTREAM_GLIB \
   17     -D prefix=/usr \
   18     -D buildtype=plain \
   19     --wrap-mode nodownload \
   20     --auto-features disabled \
   21     -D b_lto=true \
   22     -D b_pie=true \
   23     -D rpm=false \
   24     -D gtk-doc=false
   25   meson compile -C build
   26   DESTDIR=$PKG meson install -C build
   27   rm -fr $PKG/usr/share/locale
   28 }

Generated by cgit