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