diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-05-31 15:00:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-05-31 15:00:51 +0000 |
commit | 851164d649c30457757dfed0a1b66d889e4a43b8 (patch) | |
tree | 0007422033780f0a7ac9e15a3bbfd5c5774bddc2 /testing/perl-clone | |
parent | 96ebc160b154abd5e0e81eaf2076335a9c7b077e (diff) | |
download | aports-851164d649c30457757dfed0a1b66d889e4a43b8.tar.bz2 aports-851164d649c30457757dfed0a1b66d889e4a43b8.tar.xz |
testing/perl-clone: new aport
Clone perl module
http://search.cpan.org/dist/Clone/
Diffstat (limited to 'testing/perl-clone')
-rw-r--r-- | testing/perl-clone/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-clone/APKBUILD b/testing/perl-clone/APKBUILD new file mode 100644 index 0000000000..c7233a2bb4 --- /dev/null +++ b/testing/perl-clone/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-clone +pkgver=0.31 +pkgrel=0 +pkgdesc="Clone perl module" +url="http://search.cpan.org/dist/Clone/" +arch="all" +license="GPLv2 or Artistic" +depends="perl" +makedepends="perl-dev" +install="" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/R/RD/RDF/Clone-$pkgver.tar.gz" + +_builddir="$srcdir"/Clone-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make && make test || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="65f34e7280d7b7dfb72ab6224e5767f5 Clone-0.31.tar.gz" |