diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 12:31:33 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 12:31:33 +0000 |
commit | 323f00500fa644c51625531e147b8032bf66cd0a (patch) | |
tree | 6e4fa65b82b5504c801713c787f32dd5a01b78f6 /testing/perl-file-homedir | |
parent | ac0dd5056912cfb3652537fa852f7d28d4f7e2b2 (diff) | |
download | aports-323f00500fa644c51625531e147b8032bf66cd0a.tar.bz2 aports-323f00500fa644c51625531e147b8032bf66cd0a.tar.xz |
testing/perl-file-homedir: new aport
Diffstat (limited to 'testing/perl-file-homedir')
-rw-r--r-- | testing/perl-file-homedir/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-file-homedir/APKBUILD b/testing/perl-file-homedir/APKBUILD new file mode 100644 index 000000000..0ae2a164e --- /dev/null +++ b/testing/perl-file-homedir/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-file-homedir +_pkgreal=File-HomeDir +pkgver=1.00 +pkgrel=0 +pkgdesc="Find your home and other directories on any platform" +url="http://search.cpan.org/dist/File-HomeDir/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-file-which" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_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="aa290cab9db52e2f76280fd1febf794e File-HomeDir-1.00.tar.gz" |