core/perl-yaml-syck/PKGBUILD

39 lines
1.0 KiB
Bash

#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=perl-yaml-syck
_realname=YAML-Syck
pkgver=1.17
pkgrel=2
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/AV/AVAR/${_realname}-$pkgver.tar.gz)
md5sums=('f788529ad4b2c2fd037ccdfd5e7a88ab')
build() {
cd ${srcdir}/${_realname}-$pkgver
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
make test
}
package() {
cd ${srcdir}/${_realname}-$pkgver
make install DESTDIR=${pkgdir}
# 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
}