Package Details: perl-class-std 0.011-1

Git Clone URL: https://aur.archlinux.org/perl-class-std.git (read-only)
Package Base: perl-class-std
Description: Support for creating standard "inside-out" classes
Upstream URL: http://search.cpan.org/dist/Class-Std
Licenses: GPL, PerlArtistic
Submitter: None
Maintainer: jnbek
Last Packager: jnbek
Votes: 2
Popularity: 0.000000
First Submitted: 2009-08-03 20:22
Last Updated: 2015-06-16 20:27

Latest Comments

dracorp commented on 2013-06-02 09:12

Correct PKGBUILD is outdated.
pacman -Ql perl-class-std returns nothing.

mbunkus commented on 2013-06-02 08:10

This PKGBUILD results in an empty package (containing not a single file) with pacman 4.1.x. One warning issued is:

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

Here's what I currently use as functions in my own Perl module PKGBUILDs and what works nicely with your package (advantage: all stages supported, only have to change the package name in a single place):

prepare_env() {
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}/Class-Std-${pkgver}"
}

build() {
prepare_env
/usr/bin/perl Makefile.PL
make
}

check() {
prepare_env
make test
}

package() {
prepare_env
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}