[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 24 07:07:06 UTC 2017
Date: Sunday, December 24, 2017 @ 07:07:05
Author: felixonmars
Revision: 275668
addpkg: python-bitvector 3.4.7-1
Added:
python-bitvector/
python-bitvector/repos/
python-bitvector/trunk/
python-bitvector/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: python-bitvector/trunk/PKGBUILD
===================================================================
--- python-bitvector/trunk/PKGBUILD (rev 0)
+++ python-bitvector/trunk/PKGBUILD 2017-12-24 07:07:05 UTC (rev 275668)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-bitvector
+pkgname=(python-bitvector python2-bitvector)
+pkgver=3.4.7
+pkgrel=1
+pkgdesc="A memory-efficient packed representation for bit arrays in pure Python"
+url="https://pypi.python.org/pypi/BitVector"
+license=('PSF')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/B/BitVector/BitVector-$pkgver.tar.gz")
+sha512sums=('5f9c9d13de6bec4b982a98564561b250152ba0ebdc119c75ddaf3822451dabe417d023fa529fd0ab8f583f86209369937b803d3ed0809ebeb312886504d96dfe')
+
+prepare() {
+ cp -a BitVector-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/BitVector-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/BitVector-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-bitvector() {
+ depends=('python')
+
+ cd BitVector-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-bitvector() {
+ depends=('python2')
+
+ cd BitVector-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
Property changes on: python-bitvector/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list