core/perl-yaml/PKGBUILD

31 lines
937 B
Bash
Raw Normal View History

# $Id: PKGBUILD 66906 2010-02-02 00:34:31Z giovanni $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Charles Mauch <cmauch@gmail.com>
pkgname=perl-yaml
_realname=YAML
pkgver=0.71
pkgrel=1
pkgdesc="Perl/CPAN Module YAML : YAML Aint Markup Language tm"
arch=(any)
url="http://search.cpan.org/dist/${_realname}/"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/${_realname}-${pkgver}.tar.gz)
md5sums=('d0f7cf232dd43c28c0e3767d672d6887')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
#PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${pkgdir} || return 1
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}