summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergej Pupykin2017-08-14 20:16:00 +0300
committerSergej Pupykin2017-08-14 20:16:00 +0300
commitd7f8cd66d102cc0082abd42338530f20d700de77 (patch)
treec9499f31611c6447b2471f4605b902ae38c74c17
downloadaur-jabrss-svn.tar.gz
init
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..455837383985
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+# Generated by mksrcinfo v8
+# Mon Aug 14 17:15:05 UTC 2017
+pkgbase = jabrss-svn
+ pkgdesc = RSS jabber bot
+ pkgver = r1574
+ pkgrel = 1
+ url = https://dev.cmeerw.org/Projects/jabrss
+ arch = any
+ license = GPL
+ source = jabrss-svn::svn+http://svn.cmeerw.net/src/jabrss/trunk/
+ sha256sums = SKIP
+
+pkgname = jabrss-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0aa4698dbed4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+pkgname=jabrss-svn
+pkgver=r1574
+pkgver() {
+ cd "$srcdir/${pkgname%-VCS}"
+ printf "r%s" "$(svnversion | tr -d 'A-z')"
+}
+pkgrel=1
+pkgdesc="RSS jabber bot"
+arch=(any)
+url="https://dev.cmeerw.org/Projects/jabrss"
+license=('GPL')
+depends=()
+source=("$pkgname::svn+http://svn.cmeerw.net/src/jabrss/trunk/")
+sha256sums=('SKIP')
+
+package() {
+ install -dm0755 "$pkgdir"/{usr/lib,var/db/jabrss}
+ cp -a "$srcdir/${pkgname}" "$pkgdir"/usr/lib/jabrss
+ cd "$pkgdir"/var/db/jabrss
+ sqlite3 jabrss.db <"$pkgdir"/usr/lib/jabrss/db.sqlite
+ ln -s /var/db/jabrss/jabrss.db "$pkgdir"/usr/lib/jabrss
+ ln -s /var/db/jabrss/jabrss_res.db "$pkgdir"/usr/lib/jabrss
+ chown -R nobody:nobody "$pkgdir"/var/db/jabrss
+}