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

# source: james
# release tarball
#PKGVER=0.5.12
#TARBALL=dash-$PKGVER.tar.gz
#MD5SUM=
#SRC_URL=https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/$TARBALL
#BUNDLE=

# git-master tarball
PKGVER=0.5.12.2023.04 # release is 4 months behind at this point
MD5SUM=9c385c1ef78c81def505f63bbcdacb12
hash=b00288fd28c1b39d0f1531b6e6d86de59de4be8d
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=dash-$PKGVER-$hash7.tar.gz
SRC_URL=https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/dash-$hash.tar.gz

BUNDLE=

SLACKREQ= # musl-libc - build-time only
SLACKDESC="dash-static: dash-static $PKGVER (Debian Almquist shell)
dash-static: 
dash-static: dash is Debian version of ash (almquist shell). It's a lightweight, 
dash-static: fast, POSIX-compliant Bourne-compatibe shell.
dash-static: 
dash-static: This package contains statically-compiled version of dash.
dash-static: 
dash-static: https://git.kernel.org/pub/scm/utils/dash/dash.git/
dash-static: 
dash-static: 
dash-static:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	export PKG_CONFIG_PATH=/tmp/static/lib/pkgconfig/
	cd /tmp/dash*
	./autogen.sh &&
	CC=musl-gcc ./configure --prefix=/usr --bindir=/bin &&
	make &&
	make install &&	
	pkg_build_slackdesc
}
 
