projects/aports·blob master · refs

38 lines · 1.1 KiB

1# Automatically generated by apkbuild-cpan, template 4
2# Contributor: Celeste <[email protected]>
3# Maintainer: Wen Heping <[email protected]>
4pkgname=perl-css-object
5pkgver=0.2.1
6pkgrel=0
7#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
8_pkgreal=CSS-Object
9pkgdesc="Object-oriented CSS parser and manipulation interface"
10url="https://metacpan.org/release/CSS-Object/"
11arch="noarch"
12license="GPL-1.0-or-later OR Artistic-1.0-Perl"
13depends="perl perl-module-generic perl-want"
14subpackages="$pkgname-doc"
15source="https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/CSS-Object-v$pkgver.tar.gz"
16builddir="$srcdir/$_pkgreal-v$pkgver"
17
18build() {
19 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
20 PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
21 INSTALLDIRS=vendor \
22 NO_PACKLIST=1 \
23 NO_PERLLOCAL=1
24 make
25}
26
27check() {
28 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
29 make test
30}
31
32package() {
33 make DESTDIR="$pkgdir" install
34}
35
36sha512sums="
37c33ee659d9687accf3b379ca294a76ae7d665993647333f932dc640203a54c08e996318e78c554ae5326ddc66435fd3895c38921857fd0b66cc1e142d6868734 CSS-Object-v0.2.1.tar.gz
38"