blob: ecc1555011e8811d9cec53d4fa3522c222fd1da2 (
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
|
#!/usr/bin/env bash
# shellcheck disable=2034,2154
# Maintainer: Hunter Peavey < printf "dev@die.bots" | sed "s/die.bots/krathalan.net/g" >
# Contributor: Pierre Choffet
pkgname=gmnisrv-git
_pkgname=gmnisrv
pkgrel=1
pkgver=r88.fbef1d3
pkgdesc="A high-performance Gemini server for POSIX systems"
url="https://git.sr.ht/~sircmpwn/gmnisrv"
arch=("any")
license=("GPL")
depends=("openssl" "mailcap")
makedepends=("git" "scdoc")
source=("gmnisrv::git+${url}" gmnisrv.service)
md5sums=('SKIP'
'd6c15f32c646a89f85e5b19e83756146')
pkgver() {
cd "${_pkgname}" || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}" || exit
mkdir build
cd build || exit
../configure --prefix=/usr
make PREFIX="/usr"
}
package() {
cd "${_pkgname}/build" || exit
make PREFIX="/usr" DESTDIR="$pkgdir" install
# Move conf file into etc
mkdir "${pkgdir}/etc"
mv "${pkgdir}/usr/share/gmnisrv/gmnisrv.ini" "${pkgdir}/etc"
rmdir "${pkgdir}/usr/share/gmnisrv"
# Copy systemd service
mkdir -p "${pkgdir}/usr/lib/systemd/system"
cp "${srcdir}/gmnisrv.service" "${pkgdir}/usr/lib/systemd/system"
}
|