summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..56d49f75075
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-bson
+ pkgdesc = BSON codec for Python
+ pkgver = 0.5.8
+ pkgrel = 1
+ url = http://github.com/py-bson/bson
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ depends = python
+ source = https://files.pythonhosted.org/packages/source/b/bson/bson-0.5.8.tar.gz
+ sha256sums = 13fb1e5486a611374a06177663c2ab878f0c192c8fc8765a63dfef86859006c9
+
+pkgname = python-bson
+ depends = python
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00a38d76574
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Mantainer: MCMic <come@chilliet.eu>
+# Generated with pip2pkgbuild
+
+pkgbase='python-bson'
+pkgname=('python-bson')
+_module='bson'
+pkgver='0.5.8'
+pkgrel=1
+pkgdesc="BSON codec for Python"
+url="http://github.com/py-bson/bson"
+depends=('python')
+makedepends=('python-setuptools')
+license=('BSD')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
+sha256sums=('13fb1e5486a611374a06177663c2ab878f0c192c8fc8765a63dfef86859006c9')
+
+build() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ depends+=()
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}