# $Id$ # Maintainer : Jens Staal # Adapted from: Dan McGee pkgname=dash-static-musl _pkgbase=dash pkgver=0.5.8 pkgrel=1 pkgdesc="A POSIX compliant shell that aims to be as small as possible, statically linked to musl libc" arch=('i686' 'x86_64') url="http://gondor.apana.org.au/~herbert/dash/" license=('BSD') provides=("$_pkgbase") conflicts=("$_pkgbase") makedepends=('musl') #we are static install=dash.install source=("http://gondor.apana.org.au/~herbert/dash/files/${_pkgbase}-${pkgver}.tar.gz") sha1sums=('cd058935bba545427caa375337afe8a6309477d2') build() { cd "${srcdir}/${_pkgbase}-${pkgver}" export CC=musl-gcc export CFLAGS='-Os -static' ./configure \ --prefix=/usr \ --bindir=/usr/bin \ --mandir=/usr/share/man \ --exec-prefix="" \ --with-libedit make } package() { cd "${srcdir}/${_pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install # license install -m644 -D COPYING ${pkgdir}/usr/share/licenses/${_pkgbase}/COPYING }