aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-file-sharedir-install/APKBUILD
blob: f27977c558c954e057e0768d5de79aa4dec99365 (plain) (tree)
1
2
3
4
5
6




                                                      
           































                                                                                  


                                                                                                                                                                                
# 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.10
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="37fb7fa72ce7184516dd022aba62f524  File-ShareDir-Install-0.10.tar.gz"
sha256sums="708af71dec4dfb5a8cf9a5e863b566714c3f65f0a76722302de5a07ee202e6f7  File-ShareDir-Install-0.10.tar.gz"
sha512sums="96c3a94da78e51c97223f16892c6bdb6a93f9602643aca6ee73fd661aefb0a018938f03b8265f255dc3daba467e01a2d2a924f33a5e1e4d2e9c9fe2698a3d09f  File-ShareDir-Install-0.10.tar.gz"