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

# source: james

# release tarball
PKGVER=2020.6
TARBALL=libostree-$PKGVER.tar.xz
MD5SUM=cd512208fba2cfd122edffbe398cea49
SRC_URL=https://github.com/ostreedev/ostree/releases/download/v$PKGVER/$TARBALL
#BUNDLE=

# git-master tarball
#PKGVER=
#MD5SUM=
#hash=
#hash7=${hash#???????}; hash7=${hash%$hash7}
#TARBALL=libostree-$PKGVER-$hash7.tar.gz
#SRC_URL=https://github.com/ostreedev/ostree/archive/$hash.tar.gz

SLACKREQ='avahi libarchive glib libsodium' # libgpgme1 or libgpgme2
SLACKDESC="libostree: libostree $PKGVER (git-like filesystem)
libostree: 
libostree: libostree is both a library and suite of tools to manage bootable 
libostree: filesystem using git-like model, implemented as hardlinks. In 
libostree: particular, ostree is used by Flatpak (xdg-app) packging system.
libostree: 
libostree: https://github.com/ostreedev/ostree
libostree: 
libostree: 
libostree: 
libostree: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --without-soup --with-curl \
		--with-ed25519-libsodium       \
		--enable-trivial-httpd-cmdline \
		"
	touch /sbin/grub-mkconfig && chmod +x /sbin/grub-mkconfig &&
	
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	rm /sbin/grub-mkconfig &&

	# multi-lib
	mv -v /usr/share/gir-1.0/* /usr/share/gir-1.0-$USE_ARCH &&
	rm -r /usr/share/gir-1.0
}
