55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Template file for 'graphene'
|
|
pkgname=graphene
|
|
version=1.10.8
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dinstalled_tests=false
|
|
$(vopt_feature gir introspection)"
|
|
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"
|
|
changelog="https://github.com/ebassi/graphene/releases"
|
|
distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
|
|
checksum=a37bb0e78a419dcbeaa9c7027bcff52f5ec2367c25ec859da31dfde2928f279a
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) configure_args+=" -Dsse2=true" ;;
|
|
*) configure_args+=" -Dsse2=false" ;;
|
|
esac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) configure_args+=" -Darm_neon=true" ;;
|
|
*) configure_args+=" -Darm_neon=false" ;;
|
|
esac
|
|
|
|
if [ "$XBPS_TARGET_WORDSIZE" = "64" ]; then
|
|
configure_args+=" -Dgcc_vector=true"
|
|
else
|
|
configure_args+=" -Dgcc_vector=false"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|