32 lines
790 B
Bash
32 lines
790 B
Bash
|
# Template file for 'python-natsort'
|
||
|
pkgname=python-natsort
|
||
|
version=5.4.0
|
||
|
revision=1
|
||
|
noarch=yes
|
||
|
wrksrc="natsort-${version}"
|
||
|
build_style=python-module
|
||
|
pycompile_module="natsort"
|
||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||
|
depends="python"
|
||
|
short_desc="Simple yet flexible natural sorting in Python"
|
||
|
maintainer="Michal Koutenský <koutak.m@gmail.com>"
|
||
|
license="MIT"
|
||
|
homepage="https://pypi.org/project/natsort/"
|
||
|
distfiles="${PYPI_SITE}/n/natsort/natsort-${version}.tar.gz"
|
||
|
checksum=9130c8954f9437a0401d4e451b4b90a874b51ce47d91ede0f2cce4db762717f9
|
||
|
|
||
|
post_install() {
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
|
||
|
python3-natsort_package() {
|
||
|
noarch=yes
|
||
|
depends="python3"
|
||
|
pycompile_module="natsort"
|
||
|
short_desc="${short_desc/Python2/Python3}"
|
||
|
pkg_install() {
|
||
|
vmove usr/lib/python3*
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
}
|