diff options
-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() { |