summaryrefslogtreecommitdiff
path: root/system/dash/APKBUILD
blob: a305b21210ad617d351cc8da2d8aa6d6b53314cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=dash
pkgver=0.5.11.1
pkgrel=0
pkgdesc="Small and fast POSIX-compliant shell"
url="http://gondor.apana.org.au/~herbert/dash/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends=""
subpackages="$pkgname-binsh::noarch $pkgname-doc"
source="http://gondor.apana.org.au/~herbert/$pkgname/files/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/ \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
	./src/dash -c 'echo ok'
}

package() {
	make DESTDIR="$pkgdir" install
}

binsh() {
	pkgdesc="Use dash as /bin/sh"
	depends="dash"
	provides="/bin/sh"
	provider_priority=1
	mkdir -p "$subpkgdir"/bin
	ln -s /bin/dash "$subpkgdir"/bin/sh
}

sha512sums="6403ac793c87c9101bd5f3b2df74200ce1a992d0c432aa79375d4479b87c83279f303239af5080728c8a64ef4520e39fe8f0f1e037a0a38ffce1e4dd057d9c72  dash-0.5.11.1.tar.gz"