[arch-commits] Commit in seqdiag/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 11:16:47 UTC 2021
Date: Wednesday, December 1, 2021 @ 11:16:47
Author: felixonmars
Revision: 1059134
archrelease: copy trunk to community-staging-any
Added:
seqdiag/repos/community-staging-any/
seqdiag/repos/community-staging-any/PKGBUILD
(from rev 1059132, seqdiag/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: seqdiag/repos/community-staging-any/PKGBUILD (from rev 1059132, seqdiag/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 11:16:47 UTC (rev 1059134)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Runge <dvzrv at archlinux.org>
+
+pkgname=seqdiag
+pkgver=2.0.0
+pkgrel=5
+pkgdesc="seqdiag generates sequence-diagram images from .diag files"
+url="http://blockdiag.com/en/seqdiag/index.html"
+license=('Apache')
+arch=('any')
+depends=('blockdiag')
+checkdepends=('python-docutils' 'python-nose' 'python-pycodestyle' 'python-reportlab')
+optdepends=('python-reportlab: for PDF export'
+ 'python-docutils: for RST parser')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/blockdiag/seqdiag/archive/$pkgver.tar.gz")
+sha512sums=('ec4ebfc2822dd1b4dd65881b2199f512cab3ac3772451e87a1f798f36925ebb7b5824a8cd797d9e6f128698340c04e89ba226af37b02d40cf9b38638545af9bb')
+
+build() {
+ cd seqdiag-$pkgver
+ python setup.py build
+}
+
+check() {
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ cd seqdiag-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/${site_packages}" nosetests -v
+}
+
+package() {
+ cd seqdiag-$pkgver
+ python setup.py install --root="$pkgdir" \
+ --optimize=1 \
+ --skip-build
+ install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 "${pkgname}.1" -t "${pkgdir}/usr/share/man/man1/"
+}
More information about the arch-commits
mailing list