aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dist-checkconflicts/APKBUILD
blob: 206904b813fd5ec7b2dfd49f8b73f109fcb7c410 (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
31
32
33
34
35
36
37
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-dist-checkconflicts
_pkgreal=Dist-CheckConflicts
pkgver=0.11
pkgrel=1
pkgdesc="declare version conflicts for your dist"
url="https://metacpan.org/release/Dist-CheckConflicts/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-list-moreutils perl-module-runtime"
cpanmakedepends="  perl-test-fatal "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DO/DOY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

sha512sums="6c3f8546c1c7904bbc2a3c1135d145cbff95997c3032e9129afc98bdd98578dd9219af444f357dd8e9b1f08442a2fdd9d6f7fe8768f8ef165e71570f5ae246ad  Dist-CheckConflicts-0.11.tar.gz"