### this file is sourced not run
PKGVER=0.11.7
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=libbsd-$PKGVER.tar.xz
MD5SUM=2c5e63b5bb7771bbe4f572c7788e0bb8
SRC_URL=http://libbsd.freedesktop.org/releases/$TARBALL
BUNDLE=

LIBMD_TARBALL=libmd-1.0.4.tar.xz
LIBMD_MD5SUM=e8e955f8d53d2c9306b07c90ff6ae395
LIBMD_URL=http://libbsd.freedesktop.org/releases/$LIBMD_TARBALL

SLACKREQ='' # 
SLACKDESC="libbsd32: libbsd32 $PKGVER (BSD compatibility library)  
libbsd32:  
libbsd32: This library provides some functions commonly available on BSD systems 
libbsd32: but not on others like GNU systems.  
libbsd32: 
libbsd32: This contains 32-bit version of the library.
libbsd32: 
libbsd32: https://libbsd.freedesktop.org/wiki/
libbsd32: 
libbsd32: 
libbsd32:  
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	SRC_URL=$LIBMD_URL pkg_check $SRC_DIR $LIBMD_TARBALL $LIBMD_MD5SUM &&
	tar -xf $SRC_DIR/$LIBMD_TARBALL -C tmp &&
	true
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}


### build
pkg_build() {
	cd /tmp/libmd* &&
	./configure $CONFFLAGS && make && make install &&
	cd /tmp/libbsd*
	./configure $CONFFLAGS && make && make install &&
	pkg_build_slackdesc
}

