31 lines
856 B
Bash
31 lines
856 B
Bash
# Template file for 'python-wikipedia'
|
|
pkgname=python-wikipedia
|
|
version=1.4.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="wikipedia-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-BeautifulSoup4 python-requests"
|
|
short_desc="Python 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() {
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
noarch=yes
|
|
pycompile_module="wikipedia"
|
|
depends="python3-BeautifulSoup4 python3-requests"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|