diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a35ff96a70ae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-imgaug-git + pkgdesc = Image augmentation for machine learning experiments + pkgver = 0.4.0.r41.g0101108d + pkgrel = 1 + url = https://github.com/aleju/imgaug + arch = any + license = MIT + makedepends = python-setuptools + makedepends = git + depends = python-opencv + depends = python-six + depends = python-numpy + depends = python-scipy + depends = python-scikit-image + provides = python-imgaug + conflicts = python-imgaug + source = git+https://github.com/aleju/imgaug.git + sha256sums = SKIP + +pkgname = python-imgaug-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6b4215669b95 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src/ +pkg/ +imgaug/ +*.log +*.tar*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..57f50b132c79 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Sam L. Yes <samlukeyes123 at gmail dot com> +# Modified from python-imgaug +# Contributor: dianlujitao <dianlujitao at gmail dot com> + +pkgname=python-imgaug-git +pkgver=0.4.0.r41.g0101108d +pkgrel=1 +pkgdesc="Image augmentation for machine learning experiments" +url="https://github.com/aleju/imgaug" +depends=('python-opencv' 'python-six' 'python-numpy' 'python-scipy' 'python-scikit-image') +makedepends=('python-setuptools' 'git') +provides=('python-imgaug') +conflicts=('python-imgaug') +license=('MIT') +arch=('any') +source=("git+$url.git") +sha256sums=('SKIP') + +prepare() { + cd $srcdir/imgaug + sed -i '/"opencv-python-headless",/d' setup.py +} + +pkgver() { + cd imgaug + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $srcdir/imgaug + python setup.py build +} + +package() { + cd $srcdir/imgaug + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |