blob: ee87d0ae13714a14e02dd8208239e9aee89cdf1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-idna
pkgver=2.1
pkgrel=1
pkgdesc="IDNA 2008 and UTS #46 for Python"
url="https://github.com/kjd/idna"
arch="noarch"
license="BSD"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz"
builddir="$srcdir"/idna-$pkgver
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
arch="all"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
}
md5sums="df0a50db62bcfcddbef2b5c9d5cd2343 idna-2.1.tar.gz"
sha256sums="25a3dadf365b8cc2c2c262170c5de67c9195f3270cdb47a0ae459b4ebad11914 idna-2.1.tar.gz"
sha512sums="92ddaccd57f8d9cf7b57d7880f8ea3890a32a21369ba56dc713da7235983676698ef2019d6b85381ebc7291088e76c8e33f9697cbeaa7b67edef9115dfcf2189 idna-2.1.tar.gz"
|