opt/gexiv2/Pkgfile

29 lines
911 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 gobject-introspection
2021-08-22 12:53:44 +02:00
# Optional: python3-gobject vala
2018-09-09 02:07:22 +02:00
name=gexiv2
2021-08-22 12:53:44 +02:00
version=0.13.0
2018-09-09 02:07:22 +02:00
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
2021-08-22 12:53:44 +02:00
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 \
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
2018-09-09 02:07:22 +02:00
}