opt/gexiv2/Pkgfile

29 lines
911 B
Plaintext

# Description: GObject wrapper around the Exiv2 photo metadata library
# URL: https://wiki.gnome.org/Projects/gexiv2
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: exiv2 gobject-introspection
# Optional: python3-gobject vala
name=gexiv2
version=0.13.0
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
prt-get isinst python3-gobject || export PKGMK_GEXIV+=" -D python3=false"
prt-get isinst vala || PKGMK_GEXIV+=' -D vapi=false'
# tests will fail if we don't build with python3-gobject..
prt-get isinst python3-gobject || sed -i '70d' $name-$version/meson.build
meson setup build $name-$version $PKGMK_GEXIV \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D gtk_doc=false
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
}