From dbbc93e96ac69e1cc5c011c3898976619975d715 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Thu, 2 Dec 2021 12:54:59 -0500 Subject: [gmnisrv]: add pkg for review and testing (not yet accepted) --- pcr-testing/gmnisrv/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++ pcr-testing/gmnisrv/gmnisrv.service | 10 +++++++++ 2 files changed, 51 insertions(+) create mode 100644 pcr-testing/gmnisrv/PKGBUILD create mode 100644 pcr-testing/gmnisrv/gmnisrv.service (limited to 'pcr-testing') 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 + +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 -- cgit v1.2.3