vp-build/srcpkgs/python-BeautifulSoup4/template

39 lines
1.0 KiB
Bash

# Template file for 'python-BeautifulSoup4'
pkgname=python-BeautifulSoup4
version=4.5.3
revision=1
noarch=yes
wrksrc="beautifulsoup4-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="bs4"
short_desc="Python2 HTML/XML parser"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.crummy.com/software/BeautifulSoup/"
license="MIT"
distfiles="${PYPI_SITE}/b/beautifulsoup4/beautifulsoup4-${version}.tar.gz"
checksum=b21ca09366fa596043578fd4188b052b46634d22059e68dd0077d9ee77e08a3e
post_install() {
vlicense COPYING.txt LICENSE
}
python3-BeautifulSoup4_package() {
replaces="python3.4-BeautifulSoup4>=0"
noarch=yes
depends="python3"
pycompile_module="bs4"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING.txt LICENSE
}
}
python3.4-BeautifulSoup4_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-BeautifulSoup4>=${version}_${revision}"
}