blob: 508e7820bb939ca0480ac45cbec80ca1eccf12fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.000006
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="c9810355d9a51321d19124f981d1e889 Type-Tiny-1.000006.tar.gz"
sha256sums="bc61a39fe35b5568f27ebf1f1584cb45bbe8240eec21f97c50aab93f87bbc072 Type-Tiny-1.000006.tar.gz"
sha512sums="62a8ffbf14615aa2655e4f49755eed86560f03f5e9172a97950567458fe0de8dd1e29c1c4483d7e9413b9f77a1c7844e4839b4fb4c0afd722b2abbbf413ce3c8 Type-Tiny-1.000006.tar.gz"
|