core/perl-yaml-syck/PKGBUILD
2012-05-10 22:13:44 +00:00

40 lines
948 B
Bash

# Platform Packages for Chakra, part of chakra-project.org
pkgname=perl-yaml-syck
_realname=YAML-Syck
pkgver=1.20
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/T/TO/TODDR/${_realname}-$pkgver.tar.gz)
md5sums=('8f6d04ee5817b8479e1234264a8d458d')
build() {
cd "${srcdir}/${_realname}-$pkgver"
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "${srcdir}/${_realname}-$pkgver"
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"
}