summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorShengyu Zhang2019-05-27 16:39:39 +0800
committerShengyu Zhang2019-05-27 16:39:39 +0800
commite12eb49c6ed6a2f5f9f7aa998e5c7ad2e2845485 (patch)
tree43b06b1e9bb532fc1b692b63b5638a3c6372c8ec /PKGBUILD
downloadaur-e12eb49c6ed6a2f5f9f7aa998e5c7ad2e2845485.tar.gz
addpkg: confluence-publisher-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..92914d97e44
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Shengyu Zhang <la@archlinuxcn.org>
+
+_pkgname=confluence-publisher
+pkgname=${_pkgname}-git
+pkgver=v1.2.1.24.gebca4c2
+pkgrel=1
+pkgdesc='Atlassian Confluence extension for sphinx.'
+url="https://github.com/Arello-Mobile/${_pkgname}"
+arch=('any')
+license=('MIT')
+makedepends=('git' 'python-setuptools')
+depends=('python-argparse' 'python-yaml' 'python-requests')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+${url}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --tags | sed 's/-/./g'
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}"
+ python setup.py test
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: