diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 18:35:08 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 18:35:34 +0100 |
commit | 100f56206c71d63a2a07bd789e4b0067f5ae5e1e (patch) | |
tree | 8bc4e9371ba477291d2605a38d224e22664cb5a7 /main/py-unidecode/APKBUILD | |
parent | a5c80e737b753ebd2d5d75e5fe0efc1fb8407b55 (diff) | |
download | aports-100f56206c71d63a2a07bd789e4b0067f5ae5e1e.tar.bz2 aports-100f56206c71d63a2a07bd789e4b0067f5ae5e1e.tar.xz |
main/py-unidecode: fix conflict in /usr/bin between py2 and py3
Diffstat (limited to 'main/py-unidecode/APKBUILD')
-rw-r--r-- | main/py-unidecode/APKBUILD | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/py-unidecode/APKBUILD b/main/py-unidecode/APKBUILD index cc6111648b..ab1315222d 100644 --- a/main/py-unidecode/APKBUILD +++ b/main/py-unidecode/APKBUILD @@ -22,6 +22,9 @@ build() { package() { mkdir -p "$pkgdir" + + mkdir -p "$pkgdir"/usr/bin + ln -s unidecode-3 "$pkgdir"/usr/bin/unidecode } _py2() { @@ -35,12 +38,18 @@ _py3() { _py() { local python="$1" + local pyver="${1:6:1}" pkgdesc="$pkgdesc (for $python)" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" + + # Add version suffix to executable files. + local path; for path in "$subpkgdir"/usr/bin/*; do + mv "$path" "$path-$pyver" || return 1 + done } md5sums="9b3ab9bfe5a58124609840f0c2accfe4 Unidecode-0.04.19.tar.gz" |