summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHunter Peavey2020-10-25 15:02:50 -0700
committerHunter Peavey2020-10-25 15:02:50 -0700
commitceb2271a21d4b57ac29271a890cb158c5dc94e5c (patch)
treeb4956d8cab9ed70417d616c312338169473202c6
downloadaur-ceb2271a21d4b57ac29271a890cb158c5dc94e5c.tar.gz
Add gmnisrv-git pkgbuild
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a8aa8ae5b60
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gmnisrv-git
+ pkgdesc = A high-performance Gemini server for POSIX systems
+ pkgver = r48.1fe1078
+ pkgrel = 1
+ url = https://git.sr.ht/~sircmpwn/gmni
+ arch = any
+ license = GPL
+ makedepends = git
+ makedepends = scdoc
+ depends = openssl
+ source = gmnisrv::git+https://git.sr.ht/~sircmpwn/gmnisrv
+ md5sums = SKIP
+
+pkgname = gmnisrv-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c56eeec3269
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Hunter Peavey < printf "srht@die.bots" | sed "s/die.bots/krathalan.net/g" >
+
+pkgname=gmnisrv-git
+pkgrel=1
+pkgver=r48.1fe1078
+pkgdesc="A high-performance Gemini server for POSIX systems"
+url="https://git.sr.ht/~sircmpwn/gmni"
+arch=("any")
+license=("GPL")
+source=("gmnisrv::git+https://git.sr.ht/~sircmpwn/gmnisrv")
+depends=('openssl')
+makedepends=('git' 'scdoc')
+
+pkgver() {
+ cd gmnisrv
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd gmnisrv
+
+ mkdir build && cd build
+ ../configure --prefix=/usr
+ make PREFIX="/usr"
+}
+
+package() {
+ cd gmnisrv/build
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+}
+
+md5sums=('SKIP')