summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD26
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..40bfa036632
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = turnstile
+ pkgdesc = Markdown FastCGI server
+ pkgver = 0.0.2
+ pkgrel = 1
+ url = https://github.com/roryrjb/turnstile
+ arch = x86_64
+ license = custom:MIT
+ depends = discount
+ depends = fcgi
+ source = https://github.com/roryrjb/turnstile/archive/0.0.2.tar.gz
+ sha512sums = eb7a6fcf560be8967e9172116a5d9a808cde5272445dd6c10a86d976eb48e237351f07e0ac1f9fadac38e17fe67b85325e6f64f31b82ce181803ddd810b82f6a
+
+pkgname = turnstile
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..218620e2fb3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!/PKGBUILD
+!/.SRCINFO
+!/.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a4e536acb03
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
+pkgdesc='Markdown FastCGI server'
+pkgname=turnstile
+pkgver=0.0.2
+pkgrel=1
+url=https://github.com/roryrjb/turnstile
+license=(custom:MIT)
+arch=(x86_64)
+depends=(discount fcgi)
+makedepends=()
+source=("${url}/archive/${pkgver}.tar.gz")
+sha512sums=('eb7a6fcf560be8967e9172116a5d9a808cde5272445dd6c10a86d976eb48e237351f07e0ac1f9fadac38e17fe67b85325e6f64f31b82ce181803ddd810b82f6a')
+
+build ()
+{
+ cd "${pkgname}-${pkgver}"
+ make PREFIX=/usr -j$(nproc)
+}
+
+package ()
+{
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 -t "${pkgdir}/usr/bin" turnstile
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
+ install -Dm644 -t "${pkgdir}/usr/lib/systemd/system" turnstile.service
+}