diff options
author | xming <xmingske@gmail.com> | 2014-10-22 09:21:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-22 09:26:48 +0000 |
commit | 3345da2615048a9ed2c8452f50c22b2fe6f775ac (patch) | |
tree | d67331d5445e25a20c41d8cb023db3791035e43b | |
parent | aa59c220b88a2c5de497d10ebf716619d3861d7a (diff) | |
download | alpine_aports-3345da2615048a9ed2c8452f50c22b2fe6f775ac.tar.bz2 alpine_aports-3345da2615048a9ed2c8452f50c22b2fe6f775ac.tar.xz alpine_aports-3345da2615048a9ed2c8452f50c22b2fe6f775ac.zip |
testing/py-chardet
The Universal Character Encoding Detector
https://github.com/chardet/chardet/
-rw-r--r-- | testing/py-chardet/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/py-chardet/APKBUILD b/testing/py-chardet/APKBUILD new file mode 100644 index 0000000000..5d10ffa926 --- /dev/null +++ b/testing/py-chardet/APKBUILD | |||
@@ -0,0 +1,39 @@ | |||
1 | # Contributor: <xmingske@gmail.com> | ||
2 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | _pkgname=chardet | ||
4 | pkgname=py-${_pkgname} | ||
5 | pkgver=2.3.0 | ||
6 | pkgrel=0 | ||
7 | pkgdesc="The Universal Character Encoding Detector" | ||
8 | url="https://github.com/chardet/chardet/" | ||
9 | arch="noarch" | ||
10 | license="LGPL2.1" | ||
11 | makedepends="python-dev py-setuptools" | ||
12 | depends="" | ||
13 | source="$pkgname-$pkgver.tar.gz::https://github.com/chardet/$_pkgname/archive/${pkgver}.tar.gz" | ||
14 | |||
15 | _builddir="${srcdir}/${_pkgname}-${pkgver}" | ||
16 | |||
17 | prepare() { | ||
18 | local pf | ||
19 | cd "${_builddir}" | ||
20 | for pf in $source; do | ||
21 | case $pf in | ||
22 | *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; | ||
23 | esac | ||
24 | done | ||
25 | } | ||
26 | |||
27 | build() { | ||
28 | cd "${_builddir}" | ||
29 | python setup.py build || return 1 | ||
30 | } | ||
31 | |||
32 | package() { | ||
33 | cd "${_builddir}" | ||
34 | python setup.py install --prefix=/usr --root="$pkgdir" || return 1 | ||
35 | } | ||
36 | |||
37 | md5sums="1ce646cc083a7bb07398588db5b90043 py-chardet-2.3.0.tar.gz" | ||
38 | sha256sums="afb95679fb687fad167a714d929d033e3dd0d64b66d3646eecf117d350ae40cc py-chardet-2.3.0.tar.gz" | ||
39 | sha512sums="37f825e764754c9c697125b1faa604f92d49d578a44b5d1787c2c7cfcac73e161a371424bbaa3e692982bc7495b7a35b146e098d5069ae0e0edbd894ecacccd9 py-chardet-2.3.0.tar.gz" | ||