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