summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b0084c04432d89c4bd769fb7ca003291ea49279 (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
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

pkgname=nweb
pkgver=25
pkgrel=1
pkgdesc='Tiny web server for serving static pages'
arch=('x86_64' 'i686')
url='https://nmon.sourceforge.io/pmwiki.php?n=Site.Nweb'
license=('custom')
depends=(glibc)
source=(https://sourceforge.net/projects/nmon/files/nweb${pkgver}.c)
sha256sums=('5f22d4b27854a3a08fed21c46d68f49b3a2ee666cd9c5664705ace3f047b3553')


prepare() {
  curl "https://nmon.sourceforge.io/pmwiki.php?n=Site.Nweb" | grep license > LICENSE
}

build() {
  gcc -std=c11 -O3 -DLINUX nweb${pkgver}.c -o nweb -w
}

package() {
  install -Dm755 nweb "$pkgdir/usr/bin/nweb"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: