void-packages/srcpkgs/graphene/template
2020-09-18 18:46:24 +02:00

41 lines
1 KiB
Bash

# Template file for 'graphene'
pkgname=graphene
version=1.10.2
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dtests=false -Dbenchmarks=false
-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config"
makedepends="libglib-devel"
short_desc="Thin layer of types for graphic libraries"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/ebassi/graphene"
distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
checksum=e97de8208f1aac4f913d4fa71ab73a7034e807186feb2abe55876e51c425a7f6
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -Darm_neon=false" ;;
esac
build_options="gir"
build_options_default="gir"
post_install() {
vlicense LICENSE.txt LICENSE
}
graphene-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/lib/graphene-1.0
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}