summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrukai2015-06-20 15:48:08 +1000
committerrukai2015-06-20 15:48:08 +1000
commitca75596e6ee1e9393e8648e8ad690392a9202a6c (patch)
tree775421a095b023ec84e4f82d089454c7b4daf6e3
downloadaur-ca75596e6ee1e9393e8648e8ad690392a9202a6c.tar.gz
Initial commit to new git AUR
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD40
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80de819319a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = filetimecapsule-git
+ pkgdesc = A webservice for disabling distracting files.
+ pkgver = 1
+ pkgrel = 1
+ url = http://filetimecapsule.com
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python
+ depends = python-tornado
+ depends = nginx
+ source = git+https://github.com/rukai/FileTimeCapsule.git
+ md5sums = SKIP
+
+pkgname = filetimecapsule-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..83f3d38dec8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Lucas Kent <rubickent at gmail dot com>
+
+pkgname=filetimecapsule-git
+arch=('any')
+pkgver=1
+pkgrel=1
+md5sums=('SKIP')
+depends=('python' 'python-tornado' 'nginx')
+license=('GPL3')
+makedepends=('git')
+source=('git+https://github.com/rukai/FileTimeCapsule.git')
+url="http://filetimecapsule.com"
+pkgdesc="A webservice for disabling distracting files."
+
+pkgver(){
+ cd $srcdir/FileTimeCapsule
+ #generate nice pkgver from git repo
+ git describe | sed 's/\([^-]*-g\)/r\1/g' | sed 's/-/./g' | sed 's/^v//'
+}
+
+prepare(){
+ cd $srcdir/FileTimeCapsule
+ #let the launch script know where the nginx config file is stored
+ sed -i 's|$configPath|/etc/webapps/filetimecapsule/|' run.sh
+}
+
+package(){
+ dest=$pkgdir/usr/share/webapps/filetimecapsule/
+ config=$pkgdir/etc/webapps/filetimecapsule/
+ bin=$pkgdir/usr/bin/
+ cd $srcdir/FileTimeCapsule/
+
+ install -dm554 $dest
+ install -dm554 $config
+ install -m554 nginx.conf $config/
+
+ cp -rt $dest backend css fonts graphics js templates gpl-3.0.txt server.py generateDB.py run.sh
+ install -dm755 $bin
+ ln -rs $dest/run.sh $bin/filetimecapsule
+}