summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD21
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..59478ca407f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = python2-minio
+ pkgdesc = Minio Python Library for Amazon S3 Compatible Cloud Storage for Python
+ pkgver = 3.0.3
+ pkgrel = 1
+ url = https://github.com/minio/minio-py
+ arch = any
+ license = Apache
+ makedepends = python2-pip
+ depends = python2
+
+pkgname = python2-minio
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..fde9155e1ec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.swp
+
+# makepkg
+pkg/
+src
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..45b8750172c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Hugo Rodrigues <me@hugorodrigues.net>
+_pipname=minio
+pkgname=python2-${_pipname}
+pkgver=3.0.3
+pkgrel=1
+pkgdesc="Minio Python Library for Amazon S3 Compatible Cloud Storage for Python"
+arch=("any")
+url="https://github.com/minio/minio-py"
+license=("Apache")
+depends=("python2" "python2-certifi" "python2-nose")
+makedepends=("python2-pip")
+
+build() {
+ pip2 install --no-deps --target="${_pipname}" ${_pipname}==${pkgver}
+}
+
+package() {
+ mkdir -p $pkgdir/usr/lib/python2.7/site-packages/
+ cp -r $srcdir/${_pipname}/* $pkgdir/usr/lib/python2.7/site-packages/
+}
+