diff options
Diffstat (limited to 'unmaintained/perl-file-homedir/APKBUILD')
-rw-r--r-- | unmaintained/perl-file-homedir/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/perl-file-homedir/APKBUILD b/unmaintained/perl-file-homedir/APKBUILD new file mode 100644 index 0000000000..0ae2a164ea --- /dev/null +++ b/unmaintained/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" |