summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Doppler2018-10-30 10:45:30 +0100
committerSimon Doppler2018-10-30 10:45:30 +0100
commit651283b980a560aa8ddf86e0781f6ded2bf8ba77 (patch)
treebf6c1039595aad29c5c640e470db7b722ce20447 /PKGBUILD
downloadaur-pb.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
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"
+}