diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-30 07:42:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-30 08:36:14 +0000 |
commit | fe97030a1a400fd07b5d22a2cc52720e7bcb03f9 (patch) | |
tree | efda0365309a0b275be853706ca7fe8e047d4f07 /main/perl-file-sharedir-install/APKBUILD | |
parent | b108201b23905cdc800e45e67c483d4cf277d1e5 (diff) | |
download | aports-fe97030a1a400fd07b5d22a2cc52720e7bcb03f9.tar.bz2 aports-fe97030a1a400fd07b5d22a2cc52720e7bcb03f9.tar.xz |
main/perl-file-sharedir-install: new aport
Install shared files
http://search.cpan.org/dist/File-ShareDir-Install/
(cherry picked from commit 6861ecf094bb7090efa45976e4f945da3faa9a43)
Diffstat (limited to 'main/perl-file-sharedir-install/APKBUILD')
-rw-r--r-- | main/perl-file-sharedir-install/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-file-sharedir-install/APKBUILD b/main/perl-file-sharedir-install/APKBUILD new file mode 100644 index 0000000000..0093eac155 --- /dev/null +++ b/main/perl-file-sharedir-install/APKBUILD @@ -0,0 +1,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" |