summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..74eff566b3e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-diagrams
+ pkgdesc = Diagram as Code for prototyping cloud system architectures
+ pkgver = 0.17.0
+ pkgrel = 1
+ url = https://diagrams.mingrammer.com
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python-graphviz
+ depends = python-jinja
+ source = https://files.pythonhosted.org/packages/source/d/diagrams/diagrams-0.17.0.tar.gz
+ sha256sums = 86436166fd3a9b8dddb8ccce2716f458a55614527feedcb95ae4a8cdf5b7659f
+
+pkgname = python-diagrams
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8e9ec2d88a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Filipe Nascimento <flipee at tuta dot io>
+
+pkgname=python-diagrams
+_name=${pkgname//python-}
+pkgver=0.17.0
+pkgrel=1
+pkgdesc="Diagram as Code for prototyping cloud system architectures"
+arch=('any')
+url="https://diagrams.mingrammer.com"
+license=('MIT')
+depends=('python-graphviz' 'python-jinja')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('86436166fd3a9b8dddb8ccce2716f458a55614527feedcb95ae4a8cdf5b7659f')
+
+build() {
+ cd $_name-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd $_name-$pkgver
+ python setup.py install --root "$pkgdir" --skip-build --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}