summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1aca45d635245709a28be8e0f30cb08ed49ad0f0 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>

pkgname=nostromo
pkgver=2.1
pkgrel=1
pkgdesc='A simple, fast, and secure HTTP server'
arch=('x86_64')
url='http://www.nazgul.ch/dev_nostromo.html'
license=('ISC')
depends=('openssl')
makedepends=('openssl')
backup=("etc/${pkgname}/conf/nhttpd.conf"
        "etc/${pkgname}/conf/mimes"
        "etc/logrotate.d/${pkgname}")
install=${pkgname}.install
source=("http://www.nazgul.ch/dev/${pkgname}-${pkgver}.tar.gz"
        "${pkgname}.patch"
        "${pkgname}.service"
        "${pkgname}.logrotate"
        "${pkgname}.install"
        "LICENSE")
sha256sums=('d686c29a1f5dc7b35a2db9927e1fde15d64eafcb14d0f1a4b328a8f309492417'
            'bdcc6a46ce8f675481db911e0ffbda0ba15ac4fbcee1244d6746b632850b2c2a'
            'b630392d6501f963a4405b3737d65facb7b60fce28b46edf3dc0e23efce8ab0d'
            '56d3a07205a8d2c6c06851694ffebf2a5a6a64089eb78c13b0e00f9071a1efbc'
            '79501227e4129c6ee54fe9a5572ca79f0122eab812ed868d08ec16284909b53b'
            'cd16e1ab175c9ecbaca1a1f0d555930005b120769a1ebad242f4daf17b0b9a47')

prepare() {
  cd "${pkgname}-${pkgver}"

  patch -p1 -i ../${pkgname}.patch
}

build() {
  cd "${pkgname}-${pkgver}"

  make
}

package() {
  cd "${pkgname}-${pkgver}"

  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/share/man/man8"

  make DESTDIR="${pkgdir}" install

  install -Dm644 "${srcdir}/${pkgname}.logrotate" "${pkgdir}/etc/logrotate.d/${pkgname}"
  install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}