diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bfc7af825a71 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = perl-class-makemethods + pkgdesc = Generate common types of methods + pkgver = 1.01 + pkgrel = 1 + url = http://search.cpan.org/dist/Class-MakeMethods + arch = any + license = PerlArtistic + license = GPL + depends = perl + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/E/EV/EVO/Class-MakeMethods-1.01.tar.gz + md5sums = 838c98dcf1b1fff4c5d8cffaec32ebbb + sha512sums = 3eb30d7a97362dc3e4622d5efbce903c38b90f98c9612734406db07e8c8c048ec528eb6f0556a67e8f89f267dd458c1c6bae94a43fdab9e28be83c905567d81e + +pkgname = perl-class-makemethods + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5eadecfb9d6a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com> +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname='perl-class-makemethods' +pkgver='1.01' +pkgrel='1' +pkgdesc="Generate common types of methods" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=() +url='http://search.cpan.org/dist/Class-MakeMethods' +source=('http://search.cpan.org/CPAN/authors/id/E/EV/EVO/Class-MakeMethods-1.01.tar.gz') +md5sums=('838c98dcf1b1fff4c5d8cffaec32ebbb') +sha512sums=('3eb30d7a97362dc3e4622d5efbce903c38b90f98c9612734406db07e8c8c048ec528eb6f0556a67e8f89f267dd458c1c6bae94a43fdab9e28be83c905567d81e') +_distdir="Class-MakeMethods-1.01" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |