mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 02:02:08 +01:00
community/perl-type-tiny: new aport. In community because of per-test-postgresql dependency
This commit is contained in:
parent
c72176ef6f
commit
74ccecd6f2
42
community/perl-type-tiny/APKBUILD
Normal file
42
community/perl-type-tiny/APKBUILD
Normal file
@ -0,0 +1,42 @@
|
||||
# Automatically generated by apkbuild-cpan, template 1
|
||||
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=perl-type-tiny
|
||||
_pkgreal=Type-Tiny
|
||||
pkgver=1.000005
|
||||
pkgrel=0
|
||||
pkgdesc="tiny, yet Moo(se)-compatible type constraint"
|
||||
url="http://search.cpan.org/dist/Type-Tiny/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
cpandepends="perl-exporter-tiny"
|
||||
cpanmakedepends=" perl-test-warnings"
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare || return 1
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
md5sums="2914b0e6b35c35f657d426fba29b4520 Type-Tiny-1.000005.tar.gz"
|
||||
sha256sums="42ed36c011825aa1e6995a4e8638621a1b2103a0970b15764ca3919368042365 Type-Tiny-1.000005.tar.gz"
|
||||
sha512sums="5817ee937384cccbea71fa69f8c2202d721c648a18eedf089529fbb956b2d050b889606e69c8bc3e1d94fb6f638b6cac01394b5534f17a8be6cdf82d69b965b6 Type-Tiny-1.000005.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user