diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-28 17:57:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 08:45:39 +0000 |
commit | d8198db9381e75b4a930ba862d707acc6b1fbac2 (patch) | |
tree | d21e784638880f920d9a8f3206760282d253de55 /testing | |
parent | db993980d610acee84370665e378e0cfa28f8f4d (diff) | |
download | aports-d8198db9381e75b4a930ba862d707acc6b1fbac2.tar.bz2 aports-d8198db9381e75b4a930ba862d707acc6b1fbac2.tar.xz |
testing/py-beautifulsoup4: new aport
A Python HTML/XML parser
http://www.crummy.com/software/BeautifulSoup/index.html
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-beautifulsoup4/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-beautifulsoup4/APKBUILD b/testing/py-beautifulsoup4/APKBUILD new file mode 100644 index 0000000000..fa7e8c8ae0 --- /dev/null +++ b/testing/py-beautifulsoup4/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-beautifulsoup4 +_pkgname=beautifulsoup4 +pkgver=4.3.1 +pkgrel=0 +pkgdesc="A Python HTML/XML parser" +url="http://www.crummy.com/software/BeautifulSoup/index.html" +arch="noarch" +license="MIT" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver:0:3}/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="508095f2784c64114e06856edc1dafed beautifulsoup4-4.3.1.tar.gz" +sha256sums="d94545f5a222fa8ad0265e08f40f1d719fe40acd6655fa3d00b42ae269ec2f0d beautifulsoup4-4.3.1.tar.gz" +sha512sums="643342e679e9f5c4f7cc6386514151ba1176f7962ac6e40c8279de75c5081ad390ccd983a3f4e6ccaa4adadb10acaa6f0c53157099703a30a4741f3aa5c658e5 beautifulsoup4-4.3.1.tar.gz" |