aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-mockobject/APKBUILD
blob: 738c7ad46daa25f6f579fb368f9add80be12a2a0 (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
# Contributor:  Jeff Bilyk <jbilyk@gmail.com>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-mockobject
_realname=Test-MockObject
pkgver=1.20161202
pkgrel=0
pkgdesc="Perl Mock part of an object or class"
url="http://search.cpan.org/dist/Test-MockObject/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/$_realname-$pkgver.tar.gz"

_builddir="$srcdir/$_realname-$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
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete

}

md5sums="14de6c04bc3a4bf5b71a199ba0247a17  Test-MockObject-1.20161202.tar.gz"
sha256sums="14b225fff3645338697976dbbe2c39e44c1c93536855b78b3bbc6e9bfe94a0a2  Test-MockObject-1.20161202.tar.gz"
sha512sums="6410b33727352f9bd1db5643c45ea187a8bd224146a804e523f3adc0cec5b3cf72238ae212d7ee9500743c74574d4185fcb357ed4351995eb3b51ad158a736f6  Test-MockObject-1.20161202.tar.gz"