blob: 6b7b82a05481836a3055732a3930add447d3e65a (
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
|
# Maintainer: Tomás Duarte <tomas@mustachedsquid.com>
_pkgname=gophernicus
pkgname=${_pkgname}-git
pkgver=r281.da33900
pkgrel=2
pkgdesc="Modern, full-featured gopher daemon"
arch=('any')
url="https://github.com/gophernicus/gophernicus.git"
license=('BSD')
depends=('glibc')
makedepends=('git' 'make' 'gcc')
optdepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}::git+${url}")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
cd "${pkgname}"
./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --gopherroot=/srv/gopher --listener=systemd --systemd=/usr/lib/systemd/system
make
}
package() {
cd "${pkgname}"
make DESTDIR="$pkgdir" install
install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -Dm 644 README.md $pkgdir/usr/share/doc/$pkgname/README.md
install -Dm 644 README.gophermap $pkgdir/usr/share/doc/$pkgname/README.gophermap
}
|