blob: e43ebd536137cd39bc0e7d1eb972ec3ae7bc7ae2 (
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
|
# Maintainer (aur): Lex Black <autumn-wind@web.de>
pkgname=gmnisrv
pkgver=1.0
pkgrel=1
pkgdesc="simple Gemini protocol server"
url="https://git.sr.ht/~sircmpwn/gmnisrv"
arch=(x86_64)
arch+=(armv7h i686)
license=("GPL3")
depends=("openssl" "mailcap")
makedepends=("scdoc")
source=(${pkgname}-${pkgver}.tar.gz::https://git.sr.ht/~sircmpwn/${pkgname}/archive/${pkgver}.tar.gz
${pkgname}.service)
b2sums=('977e93d8826f5aab5fe00f1fa6fb39ca317caf8439116b5dd8f2ab7b811d6a4f650e94e25d7b24a7f22c33956effbe904fcb5bd3bdcd59ddec6caaff60ac6cd4'
'7a33cf875f7012d8dedd3f9fc41ef9bc5022c85cfc7dd79b254f8fc25eef164335802d67acc426124ab61922de8882945941951dae4eb7be4a57fe4efb08f3dd')
build() {
cd "${pkgname}-${pkgver}"
mkdir build
cd build
../configure --prefix=/usr
make PREFIX="/usr"
}
package() {
cd "${pkgname}-${pkgver}/build"
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"
}
|