42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'graphene'
|
|
pkgname=graphene
|
|
version=1.8.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="Rasmus Thomsen <rasmus.thomsen@protonmail.com>>"
|
|
license="MIT"
|
|
homepage="https://github.com/ebassi/graphene"
|
|
distfiles="${GNOME_SITE}/graphene/${version%.*}/graphene-${version}.tar.xz"
|
|
checksum=b3fcf20996e57b1f4df3941caac10f143bb29890a42f7a65407cd19271fc89f7
|
|
|
|
build_options="gir"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense 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
|
|
}
|
|
}
|