aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-chardet
diff options
context:
space:
mode:
Diffstat (limited to 'main/py-chardet')
-rw-r--r--main/py-chardet/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/py-chardet/APKBUILD b/main/py-chardet/APKBUILD
new file mode 100644
index 0000000000..5d10ffa926
--- /dev/null
+++ b/main/py-chardet/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_pkgname=chardet
+pkgname=py-${_pkgname}
+pkgver=2.3.0
+pkgrel=0
+pkgdesc="The Universal Character Encoding Detector"
+url="https://github.com/chardet/chardet/"
+arch="noarch"
+license="LGPL2.1"
+makedepends="python-dev py-setuptools"
+depends=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/chardet/$_pkgname/archive/${pkgver}.tar.gz"
+
+_builddir="${srcdir}/${_pkgname}-${pkgver}"
+
+prepare() {
+ local pf
+ cd "${_builddir}"
+ for pf in $source; do
+ case $pf in
+ *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || 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="1ce646cc083a7bb07398588db5b90043 py-chardet-2.3.0.tar.gz"
+sha256sums="afb95679fb687fad167a714d929d033e3dd0d64b66d3646eecf117d350ae40cc py-chardet-2.3.0.tar.gz"
+sha512sums="37f825e764754c9c697125b1faa604f92d49d578a44b5d1787c2c7cfcac73e161a371424bbaa3e692982bc7495b7a35b146e098d5069ae0e0edbd894ecacccd9 py-chardet-2.3.0.tar.gz"