aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-05-22 08:19:40 +0000
committerEivind Uggedal <eivind@uggedal.com>2014-05-22 08:19:40 +0000
commit1ac47c668bcd9d9b155cb20a341d0d39557bafed (patch)
tree7a2c9fd5a6c0c5510e31d799f112639594296b10
parent92921ea01dcd282f2e12c26dc191f6daa5c7e188 (diff)
downloadaports-1ac47c668bcd9d9b155cb20a341d0d39557bafed.tar.bz2
aports-1ac47c668bcd9d9b155cb20a341d0d39557bafed.tar.xz
testing/py-urlnorm: new aport
-rw-r--r--testing/py-urlnorm/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-urlnorm/APKBUILD b/testing/py-urlnorm/APKBUILD
new file mode 100644
index 0000000000..74654de801
--- /dev/null
+++ b/testing/py-urlnorm/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Eivind Uggedal <eivind@uggedal.com>
+pkgname=py-urlnorm
+_pkgname=${pkgname#py-}
+pkgver=1.1.2
+pkgrel=0
+pkgdesc="Normalize a URL to a standard unicode encoding"
+url="https://pypi.python.org/pypi/urlnorm"
+arch="noarch"
+license="MIT"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+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="e6544d41a4e992296ee8895873b472bf urlnorm-1.1.2.tar.gz"
+sha256sums="944b366eef37b5c99bcff10e1d1ae7f30cfeffb1eb4af16b1906d9127f467ab2 urlnorm-1.1.2.tar.gz"
+sha512sums="9cd8c5ca208518322b79eacca6db40101a6b0444f49665d42841edf890054713ef4c44a82cba3153bb7f268c5f3e3786c1524730af47c748887bb21c0d12e01c urlnorm-1.1.2.tar.gz"