mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-web-scraper: new aport
This commit is contained in:
parent
a98d6b5924
commit
79092e256b
1 changed files with 40 additions and 0 deletions
40
testing/perl-web-scraper/APKBUILD
Normal file
40
testing/perl-web-scraper/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||
pkgname=perl-web-scraper
|
||||
pkgver=0.38
|
||||
pkgrel=0
|
||||
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Web-Scraper
|
||||
pkgdesc="Web Scraping Toolkit using HTML and CSS Selectors or XPath expressions"
|
||||
url="https://metacpan.org/release/Web-Scraper/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="
|
||||
perl perl-html-parser perl-html-selector-xpath perl-html-tagset perl-html-tree
|
||||
perl-html-treebuilder-xpath perl-libwww perl-universal-require perl-uri perl-xml-xpathengine
|
||||
perl-yaml
|
||||
"
|
||||
makedepends="perl-module-build-tiny perl-test-base perl-test-requires perl-module-build"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Web-Scraper-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
perl Build.PL \
|
||||
--installdirs=vendor \
|
||||
--create_packlist=0
|
||||
./Build
|
||||
}
|
||||
|
||||
check() {
|
||||
./Build test
|
||||
}
|
||||
|
||||
package() {
|
||||
./Build install --destdir="$pkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
bce42ad903c473290d68a3b9a3a978f47d8d6388b63f6a7e91feb72d9213eb9a79948c70ad99b846eaa0c5fd43e390261e7779df64c768e32326de0a09e00b20 Web-Scraper-0.38.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue