mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-unidecode
|
|
_pkgname=Unidecode
|
|
pkgver=1.1.2
|
|
pkgrel=2
|
|
pkgdesc="Python3 ASCII transliterations of Unicode text"
|
|
url="https://pypi.python.org/pypi/Unidecode"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
# Add version suffix to executable files.
|
|
local path; for path in "$pkgdir"/usr/bin/*; do
|
|
mv "$path" "$path"-3
|
|
done
|
|
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
ln -s unidecode-3 "$pkgdir"/usr/bin/unidecode
|
|
}
|
|
|
|
sha512sums="8ee45ae05064612638ecbaa4eb74759580e5ea5cba9f3116b8e63db4af13affc266c7a07aaefbbd70b50ead7e483a72d7676c64e20b5bee2a6ba831aaccd6748 Unidecode-1.1.2.tar.gz"
|