summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD10
2 files changed, 14 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b329dba3bf8..f07954beabe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Mar 8 12:44:36 UTC 2017
+# Sat Mar 30 08:05:15 UTC 2019
pkgbase = labots-git
pkgdesc = Flexible IRC bot framework
- pkgver = 0.50.fc7d0c0
+ pkgver = 0.99.4decdc4
pkgrel = 1
url = https://github.com/SilverRainZ/labots
arch = any
@@ -10,10 +10,13 @@ pkgbase = labots-git
makedepends = git
depends = python
depends = python-tornado
- depends = python-pyinotify
depends = python-yaml
+ depends = python-pydle
+ depends = python-sqlitedict
provides = labots
conflicts = labots
+ backup = etc/labots/default.yaml
+ backup = var/lib/bots/bots.yaml
source = git+https://github.com/SilverRainZ/labots
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index e1e2b3beb91..a16f6695de4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,18 @@
_pkgname=labots
pkgname=${_pkgname}-git
-pkgver=0.50.fc7d0c0
+pkgver=0.99.4decdc4
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' )
+depends=('python' 'python-tornado' 'python-yaml' 'python-pydle' 'python-sqlitedict')
conflicts=('labots')
provides=('labots')
source=("git+https://github.com/SilverRainZ/${_pkgname}")
sha256sums=('SKIP')
+backup=('etc/labots/default.yaml' 'var/lib/bots/bots.yaml')
pkgver() {
cd "${srcdir}/${_pkgname}"
@@ -28,4 +29,9 @@ package() {
cd "${srcdir}/${_pkgname}"
python3 setup.py install --root=${pkgdir} --optimize=1 --skip-build
+
+ install -Dm644 "$srcdir/labots/labots.yaml" "$pkgdir/etc/labots/default.yaml"
+ install -Dm644 "$srcdir/labots/scripts/labots@.service" "$pkgdir/usr/lib/systemd/system/labots@.service"
+ mkdir -p "$pkgdir/var/lib/labots"
+ cp -r "$srcdir/labots/bots" "$pkgdir/var/lib/labots/bots"
}