summaryrefslogtreecommitdiff
path: root/community/darkhttpd/PKGBUILD
blob: 7cbb1baf4d50388f9e023e449a3ef2cd005a41d5 (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
# $Id: PKGBUILD 17385 2010-05-24 09:45:21Z spupykin $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>

pkgname=darkhttpd
pkgver=1.7
pkgrel=3
pkgdesc="A small, static webserver"
arch=('i686' 'x86_64' 'mips64el')
url="http://dmr.ath.cx/net/darkhttpd/"
license=('BSD')
depends=('glibc')
source=($url/$pkgname-$pkgver.tar.bz2)
md5sums=('76e55a5a443094016daf141062ae62b7')

build() {
  cd $startdir/src/$pkgname-$pkgver

  # Causes nasty output in 1.5 because of missing uname, but doesn't affect the build
  make || return 1
  install -D $startdir/src/$pkgname-$pkgver/darkhttpd $startdir/pkg/usr/sbin/darkhttpd || return 1

  mkdir -p $pkgdir/usr/share/licenses/$pkgname && \
  head -n 18 darkhttpd.c >$pkgdir/usr/share/licenses/$pkgname/license
}