opt/gexiv2/Pkgfile

29 lines
929 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 python3-gobject
# Optional: vala
name=gexiv2
version=0.14.2
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
prt-get isinst vala || PKGMK_GEXIV+=' -D vapi=false'
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
export PYTHONHASHSEED=0
/usr/bin/python3 -m compileall -d /usr/lib/python3.9/site-packages/gi $PKG/usr/lib/python3.9/site-packages/gi
/usr/bin/python3 -O -m compileall -d /usr/lib/python3.9/site-packages/gi $PKG/usr/lib/python3.9/site-packages/gi
}