summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2019-02-06 20:33:42 -0200
committerRafael Fontenelle2019-02-06 20:33:42 -0200
commitf12e833f17a0e177b022d50d09e8b14883de05eb (patch)
tree240770f81b6c8286f7835e0720821fcf31c494f3
downloadaur-f12e833f17a0e177b022d50d09e8b14883de05eb.tar.gz
Initial commit - pkgver 0.2.6
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore20
-rw-r--r--PKGBUILD40
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cb75a8a9f91
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-pyroaring
+ pkgdesc = A Python dict with a merge() method
+ pkgver = 0.2.6
+ pkgrel = 1
+ url = https://pypi.org/pypi/pyroaring
+ arch = x86_64
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.org/packages/source/p/pyroaring/pyroaring-0.2.6.tar.gz
+ sha256sums = e065a765b51725b39c9efe5cf615e587e23582a4ad236f177ed12992325b2308
+
+pkgname = python-pyroaring
+ depends = python
+
+pkgname = python2-pyroaring
+ depends = python2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1aace992673
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+# ignore everything ...
+*
+
+# ... except itself
+!.gitignore
+
+# ... except changes in package
+!PKGBUILD
+!.SRCINFO
+
+# ... except possible source files
+!*.patch
+!*.diff
+!*.desktop
+!*.png
+!LICENSE
+
+# ... except files from PKGBUILD fields
+!*.changelog
+!*.install
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..14f4e18f2e8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
+
+_name=pyroaring
+pkgname=('python-pyroaring' 'python2-pyroaring')
+pkgbase=python-$_name
+pkgver=0.2.6
+pkgrel=1
+pkgdesc="A Python dict with a merge() method"
+arch=('x86_64')
+url="https://pypi.org/pypi/$_name"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('e065a765b51725b39c9efe5cf615e587e23582a4ad236f177ed12992325b2308')
+
+prepare() {
+ cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_python-pyroaring() {
+ depends=('python')
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pyroaring() {
+ depends=('python2')
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}