summaryrefslogtreecommitdiff
path: root/pcr/gmid/PKGBUILD
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-04-06 19:46:58 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-04-12 01:11:52 -0400
commit0019869f5b92c731ff85e8d3074e03f1a82163a5 (patch)
tree806ad5be448d428eab4c508122c033a9b0b51196 /pcr/gmid/PKGBUILD
parent5571a7f59ee3bee87ab45d4d2c983c6251c2f066 (diff)
downloadabslibre-0019869f5b92c731ff85e8d3074e03f1a82163a5.tar.gz
abslibre-0019869f5b92c731ff85e8d3074e03f1a82163a5.tar.bz2
abslibre-0019869f5b92c731ff85e8d3074e03f1a82163a5.zip
[gmid]: add package
Diffstat (limited to 'pcr/gmid/PKGBUILD')
-rw-r--r--pcr/gmid/PKGBUILD78
1 files changed, 78 insertions, 0 deletions
diff --git a/pcr/gmid/PKGBUILD b/pcr/gmid/PKGBUILD
new file mode 100644
index 000000000..2a160eab6
--- /dev/null
+++ b/pcr/gmid/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer (aur): Andrea Feletto <andrea@andreafeletto.com>
+# Maintainer: Wael Karram <wael@waelk.tech>
+# Contributor: bill-auger <bill-auger@programmer.net>
+
+
+# parabola changes and rationale:
+# - delete unlicensed files
+
+
+pkgname=gmid
+pkgver=1.8.3
+pkgrel=2
+pkgdesc='Fast Gemini server written with security in mind.'
+arch=('x86_64')
+arch+=('i686' 'armv7h')
+url='https://gmid.omarpolo.com'
+license=('custom:ISC')
+install=${pkgname}.install
+backup=(etc/conf.d/${pkgname}
+ etc/${pkgname}.conf)
+depends=('libretls' 'libevent')
+mksource=(https://github.com/omar-polo/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+source=(
+ https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-${pkgver}.tar.xz{,.sig}
+ "gmid.service"
+ "gmid.sysusers"
+ "gmid.confd"
+ "gmid.initd"
+ "gmid.conf"
+ "index.gmi"
+)
+mksha256sums=('f7b6cc1deaea6c5242301fa7440c0f5caaf282fea780ba1edcef480f7fa67fe1')
+sha256sums=(
+ '5a7ad3ef93434b8a42f18bffe93444de9d30360e4c799dcadac844374e2046ca'
+ 'SKIP'
+ '946de0766343225068a0e3f38cb39a4a93ef312525dd775226b938cd08706b94'
+ '4d943727a57dbf5f246963c0f90ccc54919cc2296538457e6b16f29f7580d9d6'
+ 'eddbe93741d01077426bc0239db42815c75a0da5191b4e6528df60ae3e0e5bb3'
+ '3da15797a8771831b950b246dcd4782a58db68be10fbbc519dbbc758dd336a94'
+ '2e2b001ee1dc9d42def2d3f68fbe900f1043244c4c3402b15f54d9e091ff9a7e'
+ 'bea228ba92a03b5f0462f54bac69a47f7d063c08830a7721503b7841da6845c0'
+
+)
+validpgpkeys=('3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40') # bill-auger
+
+
+mksource() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Remove unlicensed files.
+ rm -r contrib
+ rm -r site
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ MANDIR='usr/share/man/' ./configure --prefix='usr/'
+ make
+}
+
+package() {
+ # Install the config and service files.
+ cd "$srcdir"
+ install -Dm644 gmid.service -t "$pkgdir/usr/lib/systemd/system"
+ install -Dm644 gmid.sysusers -t "$pkgdir/usr/lib/sysusers.d"
+ install -Dm644 gmid.confd "$pkgdir/etc/conf.d/gmid"
+ install -Dm755 gmid.initd "$pkgdir/etc/init.d/gmid"
+ install -Dm644 gmid.conf "$pkgdir/etc/gmid.conf"
+
+ # Install the program files.
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # Install the documentation files.
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm644 ../index.gmi "$pkgdir/usr/share/doc/$pkgname/index.gmi"
+}