summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIru Cai2018-01-04 22:42:52 +0800
committerIru Cai2018-01-04 22:42:52 +0800
commit477d849408a7bf010eed6a45d7db9e6e773e7015 (patch)
tree58b681a67d024483d2c32ab78cf27be21b8c853c
downloadaur-gdanmaku-server.tar.gz
first commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD28
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..72254ad26a7f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Thu Jan 4 14:42:44 UTC 2018
+pkgbase = gdanmaku-server
+ pkgdesc = Web-based danmaku server
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/tuna/gdanmaku-server
+ arch = any
+ license = GPL3
+ depends = python2-flask-babel
+ depends = python2-gevent
+ depends = python2-redis
+ backup = etc/gdanmaku-server/settings.py
+ source = https://github.com/tuna/gdanmaku-server/archive/v1.0.tar.gz
+ sha256sums = 45a8a1cf9f8dd1bb6a5d09bbf7fc9308c676ab59ba00fefa099385c917a885fa
+
+pkgname = gdanmaku-server
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d80fb77f5402
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Iru Cai < vimacs.hacks at gmail dot com >
+
+pkgname=gdanmaku-server
+pkgver=1.0
+pkgrel=1
+pkgdesc='Web-based danmaku server'
+arch=('any')
+url='https://github.com/tuna/gdanmaku-server'
+license=('GPL3')
+backup=('etc/gdanmaku-server/settings.py')
+depends=('python2-flask-babel' 'python2-gevent' 'python2-redis')
+source=("https://github.com/tuna/gdanmaku-server/archive/v${pkgver}.tar.gz")
+sha256sums=('45a8a1cf9f8dd1bb6a5d09bbf7fc9308c676ab59ba00fefa099385c917a885fa')
+
+build() {
+ true
+}
+
+package() {
+ install -d "${pkgdir}/opt/${pkgname}" \
+ "${pkgdir}/usr/bin" "${pkgdir}/etc/gdanmaku-server"
+
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ cp -a gdanmaku webserver.py "${pkgdir}/opt/${pkgname}/"
+ mv "${pkgdir}/opt/${pkgname}/gdanmaku/settings.py" "${pkgdir}/etc/gdanmaku-server/"
+ ln -s "/opt/${pkgname}/webserver.py" "${pkgdir}/usr/bin/gdanmaku-server"
+ ln -s /etc/gdanmaku-server/settings.py "${pkgdir}/opt/${pkgname}/gdanmaku/settings.py"
+}