updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / haserl / PKGBUILD
blob0a1134958318a94ddb0cbd101386a0db1b3bb4dc
1 # Contributor: Kyle Keen <keenerd@gmail.com>
2 pkgname=haserl
3 pkgver=0.9.27
4 pkgrel=1
5 pkgdesc="Tiny dynamic CGI with your shell or Lua."
6 arch=('any')
7 url="http://haserl.sourceforge.net"
8 license=('GPL2')
9 depends=('lua' 'sh')
10 makedepends=()
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
12 md5sums=('1f692db8939858338a44e25d0190aa9e')
14 build() {
15   cd "$srcdir"/$pkgname-$pkgver
16   ./configure --enable-bash-extensions prefix="$pkgdir/usr"
17   make
18   #make install is too easy
19   install -d "$pkgdir/usr/bin"
20   install -d "$pkgdir/usr/share/man/man1"
21   install -Dm644 doc/haserl.1 "$pkgdir/usr/share/man/man1/"
22   gzip -f "$pkgdir/usr/share/man/man1/haserl.1"
23   install -Dm755 src/haserl "$pkgdir/usr/bin/haserl-sh"
25   ./configure --with-lua prefix="$pkgdir/usr" 
26   make
27   install -Dm755 src/haserl "$pkgdir/usr/bin/haserl-lua"
29   ln -s "/usr/bin/haserl-sh" "$pkgdir/usr/bin/haserl"