mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:47:13 +08:00
34 lines
811 B
Bash
34 lines
811 B
Bash
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
pkgname=perl-yaml
|
|
_realname=YAML
|
|
pkgver=0.81
|
|
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.14.2')
|
|
options=('!emptydirs')
|
|
source=(http://www.cpan.org/authors/id/I/IN/INGY/${_realname}-${pkgver}.tar.gz)
|
|
md5sums=('1aaddf963786d70518236ae6f6347cad')
|
|
|
|
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
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
make install DESTDIR="${pkgdir}"
|
|
}
|