mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-30 19:01:45 +02:00
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
|
pkgname=perl-data-censor
|
|
pkgver=0.04
|
|
pkgrel=0
|
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Data-Censor
|
|
pkgdesc="censor sensitive stuff in a data structure"
|
|
url="https://metacpan.org/release/Data-Censor/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl perl-ref-util"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/Data-Censor-$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="
|
|
de24ec34f4f433795b2cbb0a5ff6191a972f4f9684964a3f442e75588c3a634a66734983d5d9b3c7f43a5470aa1dd278fba7360a84b23eec9885e0133fd5c51d Data-Censor-0.04.tar.gz
|
|
"
|