diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-02-04 13:04:17 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-02-04 13:04:17 +0200 |
commit | 2ce9a46570be11bda7b6d4706c6ecf112f495490 (patch) | |
tree | c9ebc1039206e32f7048aa40a17d119e2a04b59f /testing/perl-file-basedir | |
parent | ba8d75d419f30a5a8220c491a630d7fa82676e70 (diff) | |
download | aports-2ce9a46570be11bda7b6d4706c6ecf112f495490.tar.bz2 aports-2ce9a46570be11bda7b6d4706c6ecf112f495490.tar.xz |
testing/perl-file-basedir: new aport
Use the Freedesktop.org base directory specification
http://search.cpan.org/dist/File-BaseDir/
Diffstat (limited to 'testing/perl-file-basedir')
-rw-r--r-- | testing/perl-file-basedir/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-file-basedir/APKBUILD b/testing/perl-file-basedir/APKBUILD new file mode 100644 index 0000000000..6c39c7b353 --- /dev/null +++ b/testing/perl-file-basedir/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-file-basedir +_pkgreal=File-BaseDir +pkgver=0.03 +pkgrel=0 +pkgdesc="Use the Freedesktop.org base directory specification" +url="http://search.cpan.org/dist/File-BaseDir/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test +} + +package() { + cd "$_builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="527596f1507894dfaacdda72ea6dbb31 File-BaseDir-0.03.tar.gz" +sha256sums="0029cba7a3b5d8aa5f7d03cb1b7ba2bcf2829382f7f26aa3bee06fce8611a886 File-BaseDir-0.03.tar.gz" +sha512sums="ed4dc0e293a830bf21eee02a68867c4350ce3b62d19543ed4b1528afe71af6fd57ecc974d48ecab155ed8110de7cac204b7494ac46e565738029ba4ef3eae068 File-BaseDir-0.03.tar.gz" |