2018-04-13 18:10:30 +02:00
|
|
|
# Template file for 'python-wikipedia'
|
|
|
|
pkgname=python-wikipedia
|
|
|
|
version=1.4.0
|
2018-04-22 19:11:35 +02:00
|
|
|
revision=2
|
2018-04-13 18:10:30 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="wikipedia-${version}"
|
|
|
|
build_style=python-module
|
2018-04-22 19:11:35 +02:00
|
|
|
pycompile_module="wikipedia"
|
2018-04-13 18:10:30 +02:00
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
|
|
depends="python-BeautifulSoup4 python-requests"
|
2018-04-22 19:11:35 +02:00
|
|
|
short_desc="Python2 library to access and parse data from Wikipedia"
|
2018-04-13 18:10:30 +02:00
|
|
|
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"
|
2018-04-22 19:11:35 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
2018-04-13 18:10:30 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|