mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-css-inliner: new aport
This commit is contained in:
parent
66668ce179
commit
1b30e09bb6
1 changed files with 37 additions and 0 deletions
37
testing/perl-css-inliner/APKBUILD
Normal file
37
testing/perl-css-inliner/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-css-inliner
|
||||||
|
pkgver=4027
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=CSS-Inliner
|
||||||
|
pkgdesc="Library for converting CSS <style> blocks to inline styles"
|
||||||
|
url="https://metacpan.org/release/CSS-Inliner/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl perl-html-query perl-html-tree perl-libwww perl-uri"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/K/KA/KAMELKEV/CSS-Inliner-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||||
|
INSTALLDIRS=vendor \
|
||||||
|
NO_PACKLIST=1 \
|
||||||
|
NO_PERLLOCAL=1
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
0ded8239b4368d8aa1139c10f21db824b7aef4294bcd7e97a66e3f697ce96fe9fb8a048956401251507eab097f41cd2884d8953a36bd9bfe2e29b7ccbd35681a CSS-Inliner-4027.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue