mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/perl-number-misc: new aport
This commit is contained in:
parent
fccf9e600b
commit
a4b23b09f2
35
testing/perl-number-misc/APKBUILD
Normal file
35
testing/perl-number-misc/APKBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# Contributor: TBK <tbk@jjtc.eu>
|
||||
pkgname=perl-number-misc
|
||||
_pkgreal=Number-Misc
|
||||
pkgver=1.2
|
||||
pkgrel=0
|
||||
pkgdesc="Handy utilities for numbers"
|
||||
url="http://search.cpan.org/dist/Number-Misc/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
options="!check"
|
||||
depends="perl"
|
||||
makedepends="perl-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIKO/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
make && make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
sha512sums="f160de841bc895481f6d9422ed639391fd9e9b65239e3c0adf25b63e88902e7608049496ecec864cae39a046e5f1903f3e3ede1cb71018203f62da2ded67b8eb Number-Misc-1.2.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user