Hello,
I apologize for sending too many emails.
Attached to this email is a patch for a PKGBUILD for gmid:
A sandboxed gemini server written in C and supporting RFC 3987 (with
cgi + fcgi support).
The code is licensed under ISC for the most part.
I have attached two patches to add the PKGBUILD.

--
Kind regards.
Wael Karram.

P.S. This is being sent since gmnisrv doesn't conform to Parabola's
Licensing standards.
From fd71a26150595e35ee91a0c7d1e35be15946d5c9 Mon Sep 17 00:00:00 2001
From: wael <[email protected]>
Date: Fri, 3 Dec 2021 22:36:49 +0200
Subject: [PATCH 1/2] Modified and added PKGBUILD for gmid - a gemini server
 licensed under ISC.

---
 pcr/gmid/PKGBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 pcr/gmid/PKGBUILD

diff --git a/pcr/gmid/PKGBUILD b/pcr/gmid/PKGBUILD
new file mode 100644
index 000000000..81be42d0b
--- /dev/null
+++ b/pcr/gmid/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Andrea Feletto <[email protected]>
+# Contributor: Wael Karram <adminmail aT firemail dOt cc>
+
+pkgname=gmid
+pkgver=1.7.5
+pkgrel=1
+pkgdesc='Fast Gemini server written with security in mind.'
+arch=('x86_64')
+url='https://gmid.omarpolo.com'
+license=('ISC')
+depends=('libretls' 'libevent')
+makedepends=('procps-ng')
+conflicts=('gmid-git' 'gmid-bin')
+source=("https://git.omarpolo.com/$pkgname/snapshot/$pkgname-$pkgver.tar.gz";)
+sha256sums=('68859a8908dde24fb20d4d5d9530a0022751602ac254b6790f41056130a116f1')
+
+build() {
+	cd "$srcdir/$pkgname-$pkgver"
+	MANDIR='usr/share/man/' ./configure PREFIX='usr/'
+	make
+}
+
+check() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make regress
+}
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir/" install
+	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+}
-- 
2.34.1
From 08cb79d4a2a8b7e755009d71822f175b4ffbfeaf Mon Sep 17 00:00:00 2001
From: wael <[email protected]>
Date: Fri, 3 Dec 2021 22:58:45 +0200
Subject: [PATCH 2/2] Added package build for gmid, after testing the package
 (and packaging process) and cleaning it up.

---
 pcr/gmid/PKGBUILD | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pcr/gmid/PKGBUILD b/pcr/gmid/PKGBUILD
index 81be42d0b..e31488e8d 100644
--- a/pcr/gmid/PKGBUILD
+++ b/pcr/gmid/PKGBUILD
@@ -27,6 +27,12 @@ check() {
 
 package() {
 	cd "$srcdir/$pkgname-$pkgver"
+	# Clean out the contrib dir, as the status thereof isn't clear.
+	rm -rf contrib/
+	# Clean out gitignore.
+	rm .gitignore
+	# Remove site data.
+	rm -rf site/
 	make DESTDIR="$pkgdir/" install
 	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
 	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
-- 
2.34.1

Attachment: pgpxMd37UKjEH.pgp
Description: OpenPGP digital signature

_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to