31 lines
886 B
Bash
31 lines
886 B
Bash
# Template file for 'python-wikipedia'
|
|
pkgname=python-wikipedia
|
|
version=1.4.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="wikipedia-${version}"
|
|
build_style=python-module
|
|
pycompile_module="wikipedia"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-BeautifulSoup4 python-requests"
|
|
short_desc="Python2 library to access and parse data from Wikipedia"
|
|
maintainer="johannes <johannes.brechtmann@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/goldsmith/Wikipedia"
|
|
distfiles="${PYPI_SITE}/w/wikipedia/wikipedia-${version}.tar.gz"
|
|
checksum=db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-wikipedia_package() {
|
|
noarch=yes
|
|
pycompile_module="wikipedia"
|
|
depends="python3-BeautifulSoup4 python3-requests"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|