summaryrefslogtreecommitdiffstats
path: root/main/perl-file-sharedir-install/APKBUILD
blob: 0093eac155fea21215d8ebacda8cf39cd41e8182 (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
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-sharedir-install
_pkgreal=File-ShareDir-Install
pkgver=0.09
pkgrel=0
pkgdesc="Install shared files"
url="http://search.cpan.org/dist/File-ShareDir-Install/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GW/GWYN/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="508fd1f977f2e160e7e756c9c73868df  File-ShareDir-Install-0.09.tar.gz"
sha256sums="ed4fdbbd691726d45b78538c63eb1b08a7b0853cf07ec327256d0dd590acc0dc  File-ShareDir-Install-0.09.tar.gz"
sha512sums="11adcce3d868da71987cb03eaef34e38bb9dfc62dcec26288f088eecc039f0c5e1f6a49fa0103359ecaf57a9d4ac51a967f0968a31cfbe3db6bdfae70bcbb626  File-ShareDir-Install-0.09.tar.gz"