Created
June 10, 2010 20:50
-
-
Save juster/433618 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CPAN Name : Module-Install | |
# Contributor: [% packager %] | |
# Generator : CPANPLUS::Dist::Arch [% version %] | |
pkgname='[% pkgname %]' | |
pkgver='[% pkgver %]' | |
pkgrel='[% pkgrel %]' | |
pkgdesc="[% pkgdesc %]" | |
arch=('[% arch %]') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') | |
depends=([% depends %]) | |
url='[% url %]' | |
source=('[% source %]') | |
md5sums=('[% md5sums %]') | |
build() { | |
DIST_DIR="${srcdir}/[% distdir %]" | |
export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ | |
PERL_AUTOINSTALL=--skipdeps | |
{ cd "$DIST_DIR" && | |
perl Makefile.PL INSTALLDIRS=vendor DESTDIR="$pkgdir" && | |
make && | |
[% IF skiptest %]#[% END %]make test && | |
make install; | |
} || return 1; | |
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment