summaryrefslogtreecommitdiff
path: root/pcr-testing
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-12-02 12:54:59 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-12-02 15:25:10 -0500
commitdbbc93e96ac69e1cc5c011c3898976619975d715 (patch)
treec242fefeefec264d79323debc443b6315d112cfc /pcr-testing
parent8b2a3caa9e71f31e0e1730625e359b503d893a5a (diff)
downloadabslibre-dbbc93e96ac69e1cc5c011c3898976619975d715.tar.gz
abslibre-dbbc93e96ac69e1cc5c011c3898976619975d715.tar.bz2
abslibre-dbbc93e96ac69e1cc5c011c3898976619975d715.zip
[gmnisrv]: add pkg for review and testing (not yet accepted)
Diffstat (limited to 'pcr-testing')
-rw-r--r--pcr-testing/gmnisrv/PKGBUILD41
-rw-r--r--pcr-testing/gmnisrv/gmnisrv.service10
2 files changed, 51 insertions, 0 deletions
diff --git a/pcr-testing/gmnisrv/PKGBUILD b/pcr-testing/gmnisrv/PKGBUILD
new file mode 100644
index 000000000..e43ebd536
--- /dev/null
+++ b/pcr-testing/gmnisrv/PKGBUILD
@@ -0,0 +1,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"
+}
diff --git a/pcr-testing/gmnisrv/gmnisrv.service b/pcr-testing/gmnisrv/gmnisrv.service
new file mode 100644
index 000000000..b4c24bc1f
--- /dev/null
+++ b/pcr-testing/gmnisrv/gmnisrv.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Gemini Server
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/gmnisrv
+
+[Install]
+WantedBy=multi-user.target