aboutsummaryrefslogtreecommitdiff
path: root/utils/PKGBUILD
blob: 2c4752cd93db9ddc1b296b270e374204b52a3d35 (plain) (blame)
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
pkgname="gocgi"
pkgver=0.3
pkgrel=1
pkgdesc='a small go daemon to host cgi scripts'
arch=('x86_64')

source=(
  "${pkgname}-${pkgver}.tar.gz"
  "gocgi@.service"
  "gocgi.conf.example"
  )

b2sums=(
  '2265dffacf4383fe525ee7866488d2499ca9629818545804bfb6ff77515b7e44499ae70ca2bf857df580e5d6261875c83b219a6a9ba7e7a8132bd28e5c17740b'
  'd14da47a4115423674a9f63d73a2dbe0bdaf9bbdc1b5c8407abf02e9c9e7c1c584c590e24d4a0119afedf3e06982741c0d08a63baea8e387f33b82cd16be828e'
  'e61ef545c47d38b79e0f99138d00ea99982b0a90523ce1697df658e9beae230079f274283c44924a0c5f525bc397ed5a7cd3d316a18d4c0258ca3d6a3b4225f3'
  )

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  go build -trimpath

  install -Dm 0755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm 644 ${srcdir}/${pkgname}@.service -t "${pkgdir}/usr/lib/systemd/system"
  install -Dm 644 ${srcdir}/${pkgname}.conf.example -t "${pkgdir}/etc/gocgi"
}