PKGBUILDs/extra/perl-yaml-syck/PKGBUILD
2009-10-09 21:23:22 -05:00

32 lines
964 B
Bash

# $Id: PKGBUILD 49629 2009-08-14 04:21:17Z kevin $
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Maintainer: Tom K <tomk@runbox.com>
pkgname=perl-yaml-syck
_realname=YAML-Syck
pkgver=1.07
pkgrel=1
pkgdesc="Fast, lightweight YAML loader and dumper"
arch=('i686' 'x86_64')
license=('custom')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AU/AUDREYT/${_realname}-$pkgver.tar.gz)
md5sums=('410ef7e24185de2a04390e0543876cad')
build() {
cd ${srcdir}/${_realname}-$pkgver
# install module in vendor directories.
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
# license.
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}