diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-27 12:12:15 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-27 13:14:32 +0000 |
commit | 393d334352e747733b188365f1954a1a99a6b020 (patch) | |
tree | ff02fbce4a7f2954be584a78e22c5357c3df6008 /main/py-openssl/APKBUILD | |
parent | ad491a29aa422826ae0a9ebbe081e52be61ef98c (diff) | |
download | aports-393d334352e747733b188365f1954a1a99a6b020.tar.bz2 aports-393d334352e747733b188365f1954a1a99a6b020.tar.xz |
main/py-openssl: improved APKBUILD by moving install from package() to _py() function
Diffstat (limited to 'main/py-openssl/APKBUILD')
-rw-r--r-- | main/py-openssl/APKBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/main/py-openssl/APKBUILD b/main/py-openssl/APKBUILD index 900bff70c9..1d11911f2b 100644 --- a/main/py-openssl/APKBUILD +++ b/main/py-openssl/APKBUILD @@ -2,7 +2,7 @@ pkgname=py-openssl _pkgname=${pkgname/py-/} pkgver=16.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="Python wrapper module around the OpenSSL library" url="http://pyopenssl.sourceforge.net/" arch="noarch" @@ -22,19 +22,16 @@ build() { } package() { - cd "$builddir" - python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + mkdir -p "$pkgdir" } + _py() { local python=$1 pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { |