36 lines
921 B
Bash
36 lines
921 B
Bash
# Template file for 'python-beautifulsoup4'
|
|
pkgname=python-beautifulsoup4
|
|
version=4.6.0
|
|
revision=1
|
|
wrksrc="${pkgname/python-/}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="bs4"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Python2 screen-scraping library"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="http://www.crummy.com/software/BeautifulSoup/bs4/"
|
|
distfiles="https://www.crummy.com/software/BeautifulSoup/bs4/download/${version%.*}/beautifulsoup4-${version}.tar.gz"
|
|
checksum=808b6ac932dccb0a4126558f7dfdcf41710dd44a4ef497a0bb59a77f9f078e89
|
|
noarch=yes
|
|
|
|
do_check() {
|
|
yes | ./test-all-versions
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING.txt
|
|
}
|
|
|
|
python3-beautifulsoup4_package() {
|
|
noarch=yes
|
|
pycompile_module="bs4"
|
|
depends="python3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense COPYING.txt
|
|
}
|
|
}
|