summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorButui Hu2019-04-23 20:26:15 +0800
committerButui Hu2019-04-23 20:26:15 +0800
commit9e374836917bafbaedb24f8e655ad2f7791c3eff (patch)
treedb05a6140a4613c50e5d39261857946b7380ed57
downloadaur-9e374836917bafbaedb24f8e655ad2f7791c3eff.tar.gz
first commit
add python-augmentor
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..650e712b077
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-augmentor
+ pkgdesc = Image augmentation library in Python for machine learning
+ pkgver = 0.2.3
+ pkgrel = 1
+ url = https://github.com/mdbloice/Augmentor
+ arch = any
+ license = MIT
+ checkdepends = python-pytest
+ makedepends = python-setuptools
+ depends = python-future
+ depends = python-numpy
+ depends = python-pillow
+ depends = python-tqdm
+ source = Augmentor-0.2.3.tar.gz::https://github.com/mdbloice/Augmentor/archive/0.2.3.tar.gz
+ sha512sums = b992949ac227f9ac5fe12e3419bccca7ee0f75ae85198d6f83fd4258dabf26f6d22af31f1204c89f4e624c6c63bd7c599ad382e73179ca27b1600334181f201c
+
+pkgname = python-augmentor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3e64433862a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+_pkgname=Augmentor
+pkgname=python-augmentor
+pkgver=0.2.3
+pkgrel=1
+pkgdesc='Image augmentation library in Python for machine learning'
+arch=(any)
+url=https://github.com/mdbloice/Augmentor
+license=(MIT)
+depends=(python-future python-numpy python-pillow python-tqdm)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=("${_pkgname}-${pkgver}.tar.gz"::"https://github.com/mdbloice/Augmentor/archive/${pkgver}.tar.gz")
+sha512sums=('b992949ac227f9ac5fe12e3419bccca7ee0f75ae85198d6f83fd4258dabf26f6d22af31f1204c89f4e624c6c63bd7c599ad382e73179ca27b1600334181f201c')
+
+build() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${_pkgname}-${pkgver}"
+ pytest -v
+}
+
+package() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+# vim:set ts=2 sw=2 et: