### 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=4.0.0.2024.04 # release is 2 years behind
MD5SUM=670801bb31a27d7179d129a6ffb829c4
hash=a6a7041373b48fb18783d40b46c35fcb1e3700ba
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=libsmb2-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/sahlberg/libsmb2/archive/$hash.tar.gz

SLACKDESC="libsmb2: libsmb2 $PKGVER (SMB2 client access library)
libsmb2: 
libsmb2: Libsmb2 is a userspace client library for accessing SMB2/SMB3 shares 
libsmb2: on a network. It is high performance and fully async. It supports 
libsmb2: both zero-copy for SMB READ/WRITE commands as well as compounded 
libsmb2: commands.
libsmb2: 
libsmb2: This build does not link with Kerberos (krb5).
libsmb2: 
libsmb2: https://github.com/sahlberg/libsmb2
libsmb2: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CMAKEFLAGS="$CMAKEFLAGS \
		-DLIB_SUFFIX=64
	"
	pkg_build_cmake &&
	pkg_build_slackdesc	
}
