mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
|
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
|
pkgname=perl-test-mock-guard
|
|
_pkgname=Test-Mock-Guard
|
|
pkgver=0.10
|
|
pkgrel=1
|
|
pkgdesc="Simple mock test library using RAII"
|
|
url="https://github.com/zigorou/p5-test-mock-guard"
|
|
arch="noarch"
|
|
license="PerlArtistic"
|
|
makedepends="perl-dev perl-module-build perl-class-load"
|
|
subpackages="$pkgname-doc"
|
|
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cd "$builddir"
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL --installdirs=vendor
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
./Build test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
./Build install --destdir="$pkgdir"
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="17a8cbfea9e33a625ad5a33b40b5a799715d59b57eb4030a9d694fdd1e7361667f326888577291f0807852b86c04b97384ab8a48d95eb92158d35e14131068cc Test-Mock-Guard-0.10.tar.gz"
|