diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-02 15:53:12 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-10-02 16:04:49 +0200 |
commit | 73172b26d892fa642f265d75fb53b5c4d888b7b4 (patch) | |
tree | 521b60dbbc2037177ccc1e54d0e486ae00952d97 | |
parent | c68918a1bd1c7dc77650a037a0a52a250ac25d05 (diff) | |
download | aports-73172b26d892fa642f265d75fb53b5c4d888b7b4.tar.bz2 aports-73172b26d892fa642f265d75fb53b5c4d888b7b4.tar.xz |
main/py-backports.ssl_match_hostname: improve abuild
-rw-r--r-- | main/py-backports.ssl_match_hostname/APKBUILD | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/main/py-backports.ssl_match_hostname/APKBUILD b/main/py-backports.ssl_match_hostname/APKBUILD index 7c1bee4dfe..e9174c24ca 100644 --- a/main/py-backports.ssl_match_hostname/APKBUILD +++ b/main/py-backports.ssl_match_hostname/APKBUILD @@ -7,32 +7,19 @@ pkgdesc="The ssl.match_hostname() function from Python 3.4" url="https://bitbucket.org/brandon/backports.ssl_match_hostname" arch="noarch" license="PSF" -depends="python" -depends_dev="py-setuptools" -makedepends="$depends_dev" -install="" -subpackages="" +depends="python2" +makedepends="py-setuptools" 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 -} +builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$_builddir" - python setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } md5sums="c03fc5e2c7b3da46b81acf5cbacfe1e6 backports.ssl_match_hostname-3.5.0.1.tar.gz" |