aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-specio/APKBUILD
blob: df9ec6ee24a7c446d3b333f018c30abf2d32852a (plain) (blame)
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
# Contributor: Breno Leitao <breno.leitao@gmail.com>
# Maintainer: Breno Leitao <breno.leitao@gmail.com>
pkgname=perl-specio
_pkgname=Specio
pkgver=0.36
pkgrel=1
pkgdesc="Type constraints and coercions for Perl"
url="https://github.com/houseabsolute/Specio"
arch="all"
license="Artistic"
depends="perl"
makedepends=""
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/houseabsolute/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="739007e046d7f2d6a40e561ea9aeffea298fd111b3aa66f1f964fd80843319e0cbd83f39f9457ce3e8d59973313a35ead8065a94588fed84d687cc8ea5634501  perl-specio-0.36.tar.gz"