mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 03:12:22 +01:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=py-six
|
|
_pkgname=six
|
|
pkgver=1.4.1
|
|
pkgrel=0
|
|
pkgdesc="Python 2 and 3 compatibility library"
|
|
url="http://pypi.python.org/pypi/six"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python"
|
|
depends_dev=""
|
|
makedepends="python-dev"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$_pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="bdbb9e12d3336c198695aa4cf3a61d62 six-1.4.1.tar.gz"
|
|
sha256sums="f045afd6dffb755cc0411acb7ce9acc4de0e71261d4b5f91de2e68d9aa5f8367 six-1.4.1.tar.gz"
|
|
sha512sums="849e5f7c5058bceefcf3d5a76b52ec315b5efd015f66d8dff7a61854e6bb07195c3b74e521df548a9a63fa89b1be4e1b6f44d2b5d3ac6261ab3eaf0729ebed84 six-1.4.1.tar.gz"
|