summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Doppler2018-10-30 10:45:30 +0100
committerSimon Doppler2018-10-30 10:45:30 +0100
commit651283b980a560aa8ddf86e0781f6ded2bf8ba77 (patch)
treebf6c1039595aad29c5c640e470db7b722ce20447
downloadaur-pb.tar.gz
Initial commit
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD39
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aeb7ecbfc2f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+# Generated by mksrcinfo v8
+# Tue Oct 30 09:44:12 UTC 2018
+pkgbase = pb
+ pkgdesc = lightweight pastebin and url shortener built using flask
+ pkgver = 0.7.0
+ pkgrel = 1
+ url = https://github.com/ptpb/pb
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python
+ depends = python-werkzeug
+ depends = python-flask
+ depends = python-yaml
+ depends = python-requests
+ depends = python-docutils
+ depends = python-xdg
+ depends = python-pymongo
+ depends = python-markdown
+ depends = python-dateutil
+ depends = uwsgi
+ depends = uwsgi-plugin-python
+ depends = python-click
+ depends = python-pygments
+ depends = python-pytz
+ optdepends = pbs: pb styles and static resources
+ backup = etc/xdg/pb/config.yaml
+ backup = etc/uwsgi/pb.ini
+ source = pb-0.7.0.tar.gz::https://github.com/ptpb/pb/archive/0.7.0.tar.gz
+ md5sums = b8c421b8d2fcc8a0de97aa752b337029
+
+pkgname = pb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..70333c97455
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Simon Doppler (dopsi@dopsi.ch)
+pkgname=pb
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="lightweight pastebin and url shortener built using flask"
+arch=('any')
+url="https://github.com/ptpb/pb"
+license=('GPL3')
+
+depends=('python' 'python-werkzeug' 'python-flask' 'python-yaml'
+ 'python-requests' 'python-docutils' 'python-xdg'
+ 'python-pymongo' 'python-markdown' 'python-dateutil'
+ 'uwsgi' 'uwsgi-plugin-python'
+ 'python-click' 'python-pygments' 'python-pytz')
+
+makedepends=('python-setuptools' 'git')
+optdepends=('pbs: pb styles and static resources')
+
+backup=('etc/xdg/pb/config.yaml' 'etc/uwsgi/pb.ini')
+
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ptpb/pb/archive/$pkgver.tar.gz")
+md5sums=('b8c421b8d2fcc8a0de97aa752b337029')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ python setup.py build
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname"
+ install -D -m644 config.yaml.example "${pkgdir}/etc/xdg/pb/config.yaml"
+ install -D -m644 pkg/pb.ini.example "${pkgdir}/etc/uwsgi/pb.ini"
+ install -D -m644 pkg/pb.service "${pkgdir}/usr/lib/systemd/system/pb.service"
+}