mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
37 lines
1 KiB
Text
37 lines
1 KiB
Text
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
|
pkgname=perl-data-binary
|
|
pkgver=0.01
|
|
pkgrel=0
|
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Data-Binary
|
|
pkgdesc="Simple detection of binary versus text in strings"
|
|
url="https://metacpan.org/release/Data-Binary/"
|
|
arch="noarch"
|
|
license="Artistic-2.0"
|
|
depends="perl"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/S/SN/SNKWATT/Data-Binary-$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="
|
|
fee212031713280218ad01aba596bb6827ee10c2cc258f18ddf02b2e5e3b5dbf40f80d8ad92f29e5acb390656fd1c7d752e783401842b45cb75ddd9ff6fd975d Data-Binary-0.01.tar.gz
|
|
"
|