core/perl-net-ssleay/PKGBUILD

37 lines
936 B
Bash
Raw Normal View History

2011-03-26 20:12:15 +08:00
# Platform Packages for Chakra, part of chakra-project.org
2010-06-07 20:59:24 +08:00
pkgname=perl-net-ssleay
_cpanname=Net-SSLeay
2012-05-10 05:48:17 +08:00
pkgver=1.48
pkgrel=1
2010-06-07 20:59:24 +08:00
pkgdesc="Perl extension for using OpenSSL"
arch=('i686' 'x86_64')
license=('custom:BSD')
url="http://search.cpan.org/dist/${_cpanname}/"
2012-05-10 05:48:17 +08:00
depends=('openssl')
2010-06-07 20:59:24 +08:00
options=(!emptydirs)
replaces=('net-ssleay')
provides=('net-ssleay')
2012-05-10 05:48:17 +08:00
source=("http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-${pkgver}.tar.gz")
md5sums=('4e10d9da28f26732e37807820bf72af5')
2010-06-07 20:59:24 +08:00
build() {
cd ${srcdir}/${_cpanname}-${pkgver}
2012-05-10 05:48:17 +08:00
2010-06-07 20:59:24 +08:00
# install module in vendor directories.
2011-03-26 20:12:15 +08:00
PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor
2012-05-10 05:48:17 +08:00
make
}
package() {
cd ${srcdir}/${_cpanname}-${pkgver}
2011-03-26 20:12:15 +08:00
make install DESTDIR=${pkgdir}
2010-06-07 20:59:24 +08:00
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
2012-05-10 05:48:17 +08:00
install -D -m644 README "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}