updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / dash-git / PKGBUILD
blobac00692a6768a3433870464b5ac84b7fcfc02aac
1 # Maintainer: Andrej Gelenberg <andrej.gelenberg@udo.edu>
3 pkgname=dash-git
4 pkgver=20110421
5 pkgrel=1
6 pkgdesc="A POSIX compliant shell that aims to be as small as possible"
7 arch=('i686' 'x86_64')
8 url="http://gondor.apana.org.au/~herbert/dash/"
9 license=('BSD')
10 groups=('base')
11 depends=('glibc')
12 makedepends=('git')
13 conflicts=('dash')
14 provides=('dash')
16 _gitroot="http://git.kernel.org/pub/scm/utils/dash/dash.git"
17 _gitname=dash
19 build() {
20   cd "$srcdir"
21   if [[ -e $_gitname ]]
22   then
23      cd "$_gitname"
24      git reset --hard
25      git clean -f
26      git pull
27   else
28      git clone "$_gitroot" "$_gitname"
29      cd "$_gitname"
30   fi
32   autoreconf -is
33   ./configure --prefix=/usr --mandir=/usr/share/man --exec-prefix=
34   make
37 package() {
38   cd "$srcdir/$_gitname"
39   make DESTDIR="$pkgdir" install
41   # license
42   install -m644 -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"