diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-12 16:40:47 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-12 16:40:47 -0600 |
commit | 9d5276776fc3b29adaeeac90bea30d057dc2a3f6 (patch) | |
tree | 339cd90450fe6fbb73a6b2ec057639f84ae8fee2 | |
parent | c9a8fef513daf0ee7f47f359b14096f9ed4932bb (diff) | |
download | packages-9d5276776fc3b29adaeeac90bea30d057dc2a3f6.tar.gz packages-9d5276776fc3b29adaeeac90bea30d057dc2a3f6.tar.bz2 packages-9d5276776fc3b29adaeeac90bea30d057dc2a3f6.tar.xz packages-9d5276776fc3b29adaeeac90bea30d057dc2a3f6.zip |
system/dash: new package
-rw-r--r-- | system/dash/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/system/dash/APKBUILD b/system/dash/APKBUILD new file mode 100644 index 000000000..f22c6c8eb --- /dev/null +++ b/system/dash/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=dash +pkgver=0.5.9.1 +pkgrel=1 +pkgdesc="Small and fast POSIX-compliant shell" +url="http://gondor.apana.org.au/~herbert/dash/" +arch="all" +license="GPL-2.0+" +subpackages="$pkgname-binsh::noarch $pkgname-doc" +source="http://gondor.apana.org.au/~herbert/$pkgname/files/$pkgname-$pkgver.tar.gz" + +build() { + cd "$builddir" + + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/ \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check + ./src/dash -c 'echo ok' +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install +} + +binsh() { + pkgdesc="Use dash as /bin/sh" + provides="/bin/sh" + mkdir -p "$subpkgdir"/bin + ln -s dash "$subpkgdir"/bin/sh +} + +sha512sums="d56a043b8fab4693d3f70cceb531c37174e7ded4acd5549e53048d7ce29125ff21d7e758f51a4a73e06250d051e246467039989275838c19a2579edea3f72b7d dash-0.5.9.1.tar.gz" |