diff options
-rw-r--r-- | perl-tie-toobject/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/perl-tie-toobject/PKGBUILD b/perl-tie-toobject/PKGBUILD new file mode 100644 index 00000000..15ebae7f --- /dev/null +++ b/perl-tie-toobject/PKGBUILD @@ -0,0 +1,35 @@ +# CPAN Name : Tie-ToObject +# Contributor: Anonymous +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname='perl-tie-toobject' +pkgver='0.03' +pkgrel='1' +pkgdesc="Tie to an existing object." +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=('perl-test-use-ok') +url='http://search.cpan.org/dist/Tie-ToObject' +_cpanName="Tie-ToObject-${pkgver}" +source=("http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/${_cpanName}.tar.gz") +sha512sums=('b3d2060d35e943e9aae28159ec71c7a6f01f47aa2905f5a218fafda8b1eb9e9da52038471617effe9f513f882b02e59946ddddf522058221b9132970e78ec94f') + +build() { + cd "$srcdir/${_cpanName}" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/${_cpanName}" + PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "$srcdir/${_cpanName}" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete +} |