summaryrefslogblamecommitdiff
path: root/system/dash/APKBUILD
blob: a21f42a2f8242f2d2b696a32314722a56e127fe0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                                        
            
             
        



                                               

              



                                                                                   










                                         




                               




                                      
                      
                          
                           
                                 
                                           

 
                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=dash
pkgver=0.5.11
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="41c3afa8aa4788f7899b9a4c1bce2dc8629f4405184cdc7269993e72c695cf9537c9e68b654d56f06c604a82ffa73c9160b91368e82a3593a12ff7dea10505d1  dash-0.5.11.tar.gz"