summaryrefslogtreecommitdiff
path: root/community/fcgiwrap/PKGBUILD
blob: 2237fc3a754b2cd11767711ed5fa1d2e5507c3b5 (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
# $Id: PKGBUILD 75304 2012-08-18 12:28:57Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Aaron Bull Schaefer <aaron@elasticdog.com>
# Contributor: Ron Huang <ronhuang+aur at gmail dot com>

pkgname=fcgiwrap
pkgver=1.0.3
_gitrev='2e301c8'
pkgrel=3
pkgdesc='A simple server for running CGI applications over FastCGI.'
arch=('i686' 'x86_64')
url='http://nginx.localdomain.pl/wiki/FcgiWrap'
license=('MIT')
depends=('fcgi' 'spawn-fcgi')
backup=('etc/conf.d/fcgiwrap')
source=("https://github.com/downloads/gnosek/fcgiwrap/${pkgname}-${pkgver}.tar.gz"
        'fcgiwrap.conf.d'
        'fcgiwrap.rc.d'
        'fcgiwrap.service'
        'LICENSE')
md5sums=('be73d90df7c4442084463e2815fc213d'
         '9fbb5b0e861ffea74e655143a4c1a8f9'
         '71ea12f43aebca39f73ff2e0b684f361'
         'fda6e50f609ede7c599caac8a7bb127a'
         '5aee62c27b4308f25ab32f05da387366')

build() {
  cd "${srcdir}/gnosek-${pkgname}-${_gitrev}"

  autoreconf --install
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/gnosek-${pkgname}-${_gitrev}"

  make DESTDIR="${pkgdir}" install
  install -Dm0644 ../fcgiwrap.conf.d "${pkgdir}/etc/conf.d/${pkgname}"
  install -Dm0755 ../fcgiwrap.rc.d "${pkgdir}/etc/rc.d/${pkgname}"
  install -Dm0644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  install -Dm0644 "${srcdir}/fcgiwrap.service" "${pkgdir}/usr/lib/systemd/system/fcgiwrap.service"
}