diff --git a/common/shlibs b/common/shlibs index b368836487f..c7df079312c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3465,3 +3465,4 @@ libFAudio.so.0 FAudio-19.05_1 libqaccessibilityclient-qt5.so.0 libqaccessibilityclient-0.4.0_1 libnitrokey.so.3 libnitrokey-3.4.1_1 libceres.so.1 ceres-solver-1.14.0_1 +libgraphene-1.0.so.0 graphene-1.8.2_1 diff --git a/srcpkgs/graphene-devel b/srcpkgs/graphene-devel new file mode 120000 index 00000000000..4ba99649963 --- /dev/null +++ b/srcpkgs/graphene-devel @@ -0,0 +1 @@ +graphene \ No newline at end of file diff --git a/srcpkgs/graphene/template b/srcpkgs/graphene/template new file mode 100644 index 00000000000..5c3bfc387c6 --- /dev/null +++ b/srcpkgs/graphene/template @@ -0,0 +1,42 @@ +# 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 >" +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 + } +}