Add new perl modules: Convert-BinHex, MIME-tools, MailTools, Net-SMTP-SSL, TimeDate

This commit is contained in:
Alexpux 2014-02-16 17:07:47 +04:00
parent 0b82337ce0
commit 921ac00ef8
6 changed files with 166 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=Convert-BinHex
pkgname="perl-${_realname}"
pkgver=1.123
pkgrel=1
pkgdesc="Perl module to extract data from Macintosh BinHex files"
arch=('any')
url="http://search.cpan.org/dist/Convert-BinHex/"
license=('PerlArtistic')
depends=('perl')
options=('!emptydirs')
install=${pkgname}.install
source=("http://search.cpan.org/CPAN/authors/id/S/ST/STEPHEN/${_realname}-$pkgver.tar.gz")
md5sums=('6957dee877c64918066ae27ca6069bfe')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}

View File

@ -0,0 +1,8 @@
post_install() {
echo -n "module test... "
perl -mConvert::BinHex -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.'
}
post_upgrade() {
post_install
}

34
perl-MIME-tools/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=MIME-tools
pkgname=perl-${_realname}
pkgver=5.505
pkgrel=1
pkgdesc="Parses streams to create MIME entities"
arch=('any')
url="http://search.cpan.org/dist/MIME-tools"
license=('GPL' 'PerlArtistic')
depends=('perl-MailTools' 'perl-IO-stringy' 'perl-Convert-BinHex')
options=('!emptydirs')
provides=('perl-MIME-Body=5.428.0' 'perl-MIME-Decoder' 'perl-MIME-Decoder-Base64'
'perl-MIME-Decoder-Binary' 'perl-MIME-Decoder-Binhex' 'perl-MIME-Decoder-gzip64'
'perl-MIME-Decoder-nbit' 'perl-MIME-Decoder-Quotedprint' 'perl-MIME-decoder-uu'
'perl-MIME-Entity' 'perl-MIME-Field-Contdisp=5.428.0' 'perl-MIME-Field-Contraenc=5.428.0'
'perl-MIME-Field-Conttype=5.428.0' 'perl-MIME-Field-Paramval=5.428.0' 'perl-MIME-Head=5.428.0'
'perl-MIME-Parser' 'perl-MIME-Parser-Filer' 'perl-MIME-Parser-Reader'
'perl-MIME-Parser-Results' 'perl-MIME-WordDecoder' 'perl-MIME-Words=5.428.0')
source=("http://www.cpan.org/authors/id/D/DS/DSKOLL/${_realname}-${pkgver}.tar.gz")
md5sums=('7706e1f592d3f57981a7f7baaf9277a0')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
make install DESTDIR="${pkgdir}"
}

30
perl-MailTools/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=MailTools
pkgname=perl-${_realname}
pkgver=2.13
pkgrel=1
pkgdesc="Various e-mail related modules"
arch=('any')
url="https://metacpan.org/release/MailTools"
license=('PerlArtistic' 'GPL')
depends=('perl-TimeDate')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-$pkgver.tar.gz")
sha1sums=('48994a6762dcefece6c39e5df327b755d28bd21b')
build() {
cd MailTools-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd ${_realname}-$pkgver
make test
}
package() {
cd ${_realname}-$pkgver
make DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,33 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=Net-SMTP-SSL
pkgname=perl-${_realname}
pkgver=1.01
pkgrel=1
pkgdesc="SSL support for Net::SMTP"
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
groups=('perl-modules')
depends=('perl-IO-Socket-SSL')
options=(!emptydirs)
source=("http://www.cpan.org/authors/id/C/CW/CWEST/Net-SMTP-SSL-${pkgver}.tar.gz")
options=(!emptydirs)
md5sums=('ba039288ebf7a343feecacd374da8c1a')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
perl Makefile.PL -- INSTALLDIRS=vendor
make
}
package() {
cd ${srcdir}/${_realname}-${pkgver}
make install DESTDIR=${pkgdir}
# Remove .packlist and perllocal.pod files.
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name 'perllocal.pod' -delete
}

32
perl-TimeDate/PKGBUILD Normal file
View File

@ -0,0 +1,32 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=TimeDate
pkgname="perl-${_realname}"
pkgver=2.30
pkgrel=1
pkgdesc="Date formating subroutines"
arch=('any')
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl')
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/G/GB/GBARR/${_realname}-${pkgver}.tar.gz")
md5sums=('b1d91153ac971347aee84292ed886c1c')
build() {
cd ${_realname}-${pkgver}
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd ${_realname}-${pkgver}
make test
}
package() {
cd ${_realname}-${pkgver}
make install DESTDIR="${pkgdir}"
}