summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/dash/PKGBUILD
blob: eccfe5c1be8f0872ba943fba5e77ad93e2cf73af (plain)
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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Dan McGee <dan@archlinux.org>

pkgname=dash
pkgver=0.5.4
pkgrel=13
pkgdesc="A POSIX compliant shell that aims to be as small as possible"
arch=('i686' 'x86_64')
url="http://gondor.apana.org.au/~herbert/dash/"
license=('BSD')
groups=('base')
makedepends=('klibc>=1.5')
#provides=('sh')
source=("http://gondor.apana.org.au/~herbert/dash/files/dash-$pkgver.tar.gz")
md5sums=('bc457e490a589d2f87f2333616b67931')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man --exec-prefix="" CC=klcc LD=klcc LDFLAGS="-static"
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1

  # license
  install -m644 -D COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING

  #static dash is our default /bin/sh
  #cd ${startdir}/pkg/bin
  #ln -s dash sh
}