opt/gexiv2/Pkgfile

29 lines
929 B
Plaintext
Raw Normal View History

2018-09-09 02:07:22 +02:00
# Description: GObject wrapper around the Exiv2 photo metadata library
2021-01-29 13:33:43 +01:00
# URL: https://wiki.gnome.org/Projects/gexiv2
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: exiv2 python3-gobject
# Optional: vala
2018-09-09 02:07:22 +02:00
name=gexiv2
2023-07-28 14:18:34 +02:00
version=0.14.2
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
2018-09-09 02:07:22 +02:00
build() {
2021-08-22 12:53:44 +02:00
prt-get isinst vala || PKGMK_GEXIV+=' -D vapi=false'
meson setup build $name-$version $PKGMK_GEXIV \
2021-01-29 13:33:43 +01:00
--prefix=/usr \
--buildtype=plain \
2021-08-22 12:53:44 +02:00
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D gtk_doc=false
2021-01-29 13:33:43 +01:00
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
2018-09-09 02:07:22 +02:00
}