29 lines
871 B
Bash
29 lines
871 B
Bash
# Template file for 'python-urbandict'
|
|
pkgname=python-urbandict
|
|
version=0.6.1
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="urbandict-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="CLI client and a library for urbandictionary.com"
|
|
maintainer="Benjamín Albiñana <benalb@gmail.com>"
|
|
license="Unlicense"
|
|
homepage="https://github.com/novel/py-urbandict"
|
|
distfiles="${PYPI_SITE}/u/urbandict/urbandict-${version}.tar.gz"
|
|
checksum=a19685ffa2450bea2df9bf328a6ce7c3c1e2213c95171ae2263b987cc54d201b
|
|
alternatives="urbandicli:urbandicli:/usr/bin/urbandicli2"
|
|
|
|
python3-urbandict_package() {
|
|
archs=noarch
|
|
alternatives="urbandicli:urbandicli:/usr/bin/urbandicli3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
depends="python3"
|
|
pkg_install() {
|
|
vmove usr/bin/urbandicli3
|
|
vmove usr/lib/python3*
|
|
vlicense COPYING
|
|
}
|
|
}
|