updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / nweb / PKGBUILD
blob5538525ef02324c18ab0610b295a86b528de18c8
1 # Contributor: Alexander Rødseth <rodseth@gmail.com>
2 pkgname=nweb
3 pkgver=1
4 pkgrel=1
5 pkgdesc="A tiny web server for serving static pages"
6 arch=('i686' 'x86_64')
7 url="http://www.ibm.com/developerworks/systems/library/es-nweb.html"
8 license=('custom')
9 depends=('glibc')
10 makedepends=('lynx')
11 md5sums=('8579bfdc93dde0baffaa0518ab2b6ca1')
12 source=('http://download.boulder.ibm.com/ibmdl/pub/software/dw/library/es-nweb.zip')
14 build() {
15   cd "$srcdir"
16   lynx --dump "http://www.ibm.com/developerworks/apps/download/index.jsp?filename=es-nweb.zip&method=http&contentid=13101" | head -120 | tail -93 > LICENSE
17   gcc -O -DLINUX nweb.c -o nweb || return 1
18   install -Dm755 nweb $pkgdir/usr/bin/nweb
19   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
22 # vim:set ts=2 sw=2 et: