mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 09:22:14 +08:00
Full core update for Perl
This commit is contained in:
parent
56dd7e9c04
commit
7c9d365c48
@ -1,30 +1,31 @@
|
||||
#
|
||||
# Chakra 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-error
|
||||
_realname=Error
|
||||
pkgver=0.17016
|
||||
pkgrel=3
|
||||
pkgver=0.17017
|
||||
pkgrel=1
|
||||
pkgdesc="Perl/CPAN Error module - Error/exception handling in an OO-ish way"
|
||||
url="http://search.cpan.org/dist/${_realname}/"
|
||||
arch=(i686 x86_64)
|
||||
arch=('any')
|
||||
license=('PerlArtistic' 'GPL')
|
||||
depends=('perl>=5.10.0')
|
||||
depends=('perl>=5.14.2')
|
||||
options=('!emptydirs')
|
||||
source=(http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_realname}-${pkgver}.tar.gz)
|
||||
md5sums=('eedcd3c6970568dd32092b5334328eff')
|
||||
md5sums=('d53e158fdb3d8fd54ddbed4dc2e44ad4')
|
||||
|
||||
build() {
|
||||
cd ${startdir}/src/${_realname}-${pkgver}
|
||||
cd ${srcdir}/${_realname}-${pkgver}
|
||||
# install module in vendor directories.
|
||||
perl Makefile.PL INSTALLDIRS=vendor || return 1
|
||||
make || return 1
|
||||
make install DESTDIR=${startdir}/pkg || return 1
|
||||
|
||||
# remove perllocal.pod and .packlist
|
||||
find ${startdir}/pkg -name perllocal.pod -delete
|
||||
find ${startdir}/pkg -name .packlist -delete
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${srcdir}/${_realname}-${pkgver}
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${_realname}-${pkgver}
|
||||
make install DESTDIR=${pkgdir}
|
||||
}
|
||||
|
38
perl-xml-parser/PKGBUILD
Normal file
38
perl-xml-parser/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
|
||||
pkgname=perl-xml-parser
|
||||
_realname=XML-Parser
|
||||
pkgver=2.41
|
||||
pkgrel=1
|
||||
pkgdesc="Expat-based XML parser module for perl"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL' 'PerlArtistic')
|
||||
url="http://search.cpan.org/dist/${_realname}/"
|
||||
depends=('perl' 'expat')
|
||||
replaces=('perlxml')
|
||||
provides=("perlxml=${pkgver}")
|
||||
options=('!emptydirs')
|
||||
source=("http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/${_realname}-${pkgver}.tar.gz")
|
||||
md5sums=('c320d2ffa459e6cdc6f9f59c1185855e')
|
||||
|
||||
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
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Chakra 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=perlxml
|
||||
_realname=XML-Parser
|
||||
pkgver=2.40
|
||||
pkgrel=3
|
||||
pkgdesc="XML::Parser - an XML parser module for perl"
|
||||
arch=(i686 x86_64)
|
||||
license=('GPL' 'PerlArtistic')
|
||||
url="http://search.cpan.org/dist/${_realname}/"
|
||||
depends=('perl>=5.10.0' 'expat>=2.0')
|
||||
options=(!emptydirs)
|
||||
source=(http://search.cpan.org/CPAN//authors/id/C/CH/CHORNY/${_realname}-${pkgver}.tar.gz)
|
||||
md5sums=('c66e9adba003d0667cc40115ccd837a5')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
# install module in vendor directories.
|
||||
perl Makefile.PL INSTALLDIRS=vendor || return 1
|
||||
make MAN1EXT=1p MAN3EXT=3pm || return 1
|
||||
make install MAN1EXT=1p MAN3EXT=3pm DESTDIR="${pkgdir}" || return 1
|
||||
|
||||
# remove perllocal.pod and .packlist.
|
||||
find "${pkgdir}" -name perllocal.pod -delete
|
||||
find "${pkgdir}" -name .packlist -delete
|
||||
}
|
Loading…
Reference in New Issue
Block a user