diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-26 01:53:19 -0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-05-03 19:08:06 +0300 |
commit | 3f11c56e4f156072c722f376dbe3d50102bae833 (patch) | |
tree | eb7214a2f8fe94dcb4c49c19e65a0f00eac1fd8e /unmaintained/py-urlnorm | |
parent | 7f29828c8d510a37541e2019a4465d884679c911 (diff) | |
download | aports-3f11c56e4f156072c722f376dbe3d50102bae833.tar.bz2 aports-3f11c56e4f156072c722f376dbe3d50102bae833.tar.xz |
unmaintained/py-urlnorm: move from main
Diffstat (limited to 'unmaintained/py-urlnorm')
-rw-r--r-- | unmaintained/py-urlnorm/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/py-urlnorm/APKBUILD b/unmaintained/py-urlnorm/APKBUILD new file mode 100644 index 0000000000..27a7b5866e --- /dev/null +++ b/unmaintained/py-urlnorm/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: +pkgname=py-urlnorm +_pkgname=${pkgname#py-} +pkgver=1.1.2 +pkgrel=1 +pkgdesc="Normalize a URL to a standard unicode encoding" +url="https://pypi.python.org/pypi/urlnorm" +arch="noarch" +license="MIT" +depends="python2" +depends_dev="" +makedepends="python2-dev py-setuptools" +install="" +subpackages="" +source="https://files.pythonhosted.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" + python2 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python2 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" |