aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-sharedir/APKBUILD
blob: 9bfe7655cb5dc8ab9e475fa9a900a824739cd2f4 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-sharedir
_pkgname=File-ShareDir
pkgver=1.106
pkgrel=0
pkgdesc="File::ShareDir perl module"
url="http://search.cpan.org/dist/File-ShareDir/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-class-inspector"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

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

check() {
	cd "$builddir"
	make test
}

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

sha512sums="68935bf150b3c613af46bf783c12524cbe7eabc0363c06ea83959e7353beda822e403d42ab6ddfb679ab1c5ff95d1999c597ef7bfc5e8a3fae70273160ba4964  File-ShareDir-1.106.tar.gz"