### this file is sourced not run
PKGBUILD=1
PKGARCH=x86_64

# source: james
# release tarball
#PKGVER=
#TARBALL=
#MD5SUM=
#SRC_URL=
#BUNDLE=

# git-master tarball
PKGVER=1.10.8.2023.06 # release is more than 1 year behind
MD5SUM=3132b2e181d8540bcff69aeafcfb72b0
hash=5c142f115fa8fa74e04b6e66162ac2e7fee317b5
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=graphene-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/ebassi/graphene/archive/$hash.tar.gz

SLACKREQ=''
SLACKDESC="libgraphene: libgraphene $PKGVER (Graphics API)
libgraphene: 
libgraphene: This library provides types and their relative API; it does not deal 
libgraphene: with windowing system surfaces, drawing, scene graphs, or input. 
libgraphene: You're supposed to do that yourself, in your own canvas 
libgraphene: implementation, which is the whole point of writing the library in 
libgraphene: the first place.
libgraphene: 
libgraphene: https://github.com/ebassi/graphene/
libgraphene: 
libgraphene: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	MESONFLAGS="$MESONFLAGS \
		-Dtests=false           \
		-Dinstalled_tests=false \
		-Dgtk_doc=true \
	"
	pkg_build_meson &&
	pkg_build_slackdesc &&

	# multilib
	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-64 &&
	rm -r /usr/share/gir-1.0/	
}
