summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengyu Zhang2017-01-08 01:02:27 +0800
committerShengyu Zhang2017-01-08 01:02:27 +0800
commite3d4114b40034593607907f6a455d5db093cb336 (patch)
tree20afa5c4959e0584e3a9aa27937476563a4b815d
downloadaur-e3d4114b40034593607907f6a455d5db093cb336.tar.gz
addpkg: labots-git
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..157523bc76b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Sat Jan 7 17:01:49 UTC 2017
+pkgbase = labots-git
+ pkgdesc = Flexible IRC bot framework
+ pkgver = 0.44.a497412
+ pkgrel = 1
+ url = https://github.com/SilverRainZ/labots
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python
+ depends = python-tornado
+ depends = python-pyinotify
+ depends = python-yaml
+ provides = labots
+ conflicts = labots
+ source = git+https://github.com/SilverRainZ/labots
+ sha256sums = SKIP
+
+pkgname = labots-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c816737073
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+_pkgname=labots
+pkgname=${_pkgname}-git
+pkgver=0.44.a497412
+pkgrel=1
+pkgdesc='Flexible IRC bot framework'
+arch=('any')
+url="https://github.com/SilverRainZ/${_pkgname}"
+license=('GPL3')
+makedepends=('git')
+depends=('python' 'python-tornado' 'python-pyinotify' 'python-yaml' )
+conflicts=('labots')
+provides=('labots')
+source=("git+https://github.com/SilverRainZ/${_pkgname}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ echo "0.$(git rev-list --count HEAD).$(git describe --always)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ python3 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build
+}