aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-unidecode/APKBUILD
blob: bc77cd1c3147b4420a4e6b38ba763d352efc2ae8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               
                     
                  

            
                                                        

                                            
                          
                                
                                                                                                          
                                    

         
                              

 
         
                             

 
           
                                                               

                                                 

                                                       
            


                                                     

 
                                                                                                                                                                     
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-unidecode
_pkgname=Unidecode
pkgver=1.1.2
pkgrel=0
pkgdesc="Python3 ASCII transliterations of Unicode text"
url="https://pypi.python.org/pypi/Unidecode"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 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"