summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-05-31 21:41:24 -0700
committerclintval2018-05-31 21:41:24 -0700
commitbc6c6672336eaa0e596e3cd949b77ff12a1cf699 (patch)
treec85b42d7422f3cafe2cbc2b68cd5c493e1f42ea2
downloadaur-bc6c6672336eaa0e596e3cd949b77ff12a1cf699.tar.gz
First commit with PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD56
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8308ab56ecc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = python-adjusttext
+ pkgdesc = A small library for automatically adjusting text position in matplotlib plots to minimize overlaps
+ pkgver = 0.7
+ pkgrel = 1
+ url = https://github.com/meowklaski/adjustText
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = python-adjusttext-0.7.tar.gz::https://pypi.io/packages/source/a/adjustText/adjustText-0.7.tar.gz
+ source = https://raw.githubusercontent.com/Phlya/adjustText/0.7/LICENSE
+ sha256sums = 9343d42777b43a0383327b3124172a83a0a66926a386b7a87413f8e719b4b6bf
+ sha256sums = 443687f058d5f541952ab9bcd6f836d9843ac13b93b8a6b1097eb0832d2314fa
+
+pkgname = python-adjusttext
+ depends = python
+ depends = python-matplotlib
+ depends = python-numpy
+
+pkgname = python2-adjusttext
+ depends = python2
+ depends = python2-matplotlib
+ depends = python2-numpy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab7cecaf25b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=adjustText
+pkgbase='python-adjusttext'
+pkgname=('python-adjusttext' 'python2-adjusttext')
+pkgver=0.7
+pkgrel=1
+pkgdesc=" A small library for automatically adjusting text position in matplotlib plots to minimize overlaps"
+arch=('any')
+url=https://github.com/meowklaski/"${_name}"
+license=('MIT')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+options=(!emptydirs)
+source=(
+ "${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz
+ https://raw.githubusercontent.com/Phlya/"${_name}"/"${pkgver}"/LICENSE
+)
+sha256sums=(
+ '9343d42777b43a0383327b3124172a83a0a66926a386b7a87413f8e719b4b6bf'
+ '443687f058d5f541952ab9bcd6f836d9843ac13b93b8a6b1097eb0832d2314fa'
+)
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
+
+package() {
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+build(){
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-adjusttext() {
+ depends=('python2' 'python2-matplotlib' 'python2-numpy')
+
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ cd "${_name}"-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}
+
+package_python-adjusttext() {
+ depends=('python' 'python-matplotlib' 'python-numpy')
+
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+ cd "${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+}