summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåvard Pettersson2018-07-28 18:21:41 +0200
committerHåvard Pettersson2018-07-28 18:21:41 +0200
commite4e7162d14196ee6de17550c781a670d77af2fc0 (patch)
treef49b845e2f37b5185eaba32cf6e4d0ff49af9cae
downloadaur-e4e7162d14196ee6de17550c781a670d77af2fc0.tar.gz
v0.3.4
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD45
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..265469ba284
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-matplotlib-label-lines
+ pkgdesc = Label lines with matplotlib.
+ pkgver = 0.3.4
+ pkgrel = 1
+ url = https://github.com/cphyc/matplotlib-label-lines
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ depends = python-matplotlib
+ depends = python-numpy
+ source = https://files.pythonhosted.org/packages/source/m/matplotlib-label-lines/matplotlib-label-lines-0.3.4.tar.gz
+ sha256sums = af8b8f00bedf25ce081698ac5b91342fe3cba821ab33466848a7ab411230d178
+
+pkgname = python-matplotlib-label-lines
+
+pkgname = python2-matplotlib-label-lines
+ depends = python2-matplotlib
+ depends = python2-numpy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fcd354e80e2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Håvard Pettersson <mail@haavard.me>
+
+_pkgname=matplotlib-label-lines
+pkgbase=python-$_pkgname
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=0.3.4
+pkgrel=1
+pkgdesc='Label lines with matplotlib.'
+url='https://github.com/cphyc/matplotlib-label-lines'
+arch=(any)
+license=(MIT)
+depends=(python-matplotlib python-numpy)
+makedepends=(python-setuptools python2-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('af8b8f00bedf25ce081698ac5b91342fe3cba821ab33466848a7ab411230d178')
+
+prepare() {
+ cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
+}
+
+build_python-matplotlib-label-lines() {
+ cd $_pkgname-$pkgver
+ python setup.py build
+}
+
+build_python2-matplotlib-label-lines() {
+ cd $_pkgname-$pkgver-2
+ python2 setup.py build
+}
+
+package_python-matplotlib-label-lines() {
+ cd $_pkgname-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-matplotlib-label-lines() {
+ depends=(python2-matplotlib python2-numpy)
+
+ cd $_pkgname-$pkgver-2
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: