Skip to content
Snippets Groups Projects
PKGBUILD 1.28 KiB
Newer Older
Levente Polyak's avatar
Levente Polyak committed
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=perl-net-ssleay
_cpanname=Net-SSLeay
pkgver=1.94
pkgrel=2
Felix Yan's avatar
Felix Yan committed
pkgdesc='Perl bindings for OpenSSL and LibreSSL'
Levente Polyak's avatar
Levente Polyak committed
url='https://search.cpan.org/dist/Net-SSLeay/'
arch=('x86_64')
license=('custom:BSD')
Giovanni Scafora's avatar
Giovanni Scafora committed
depends=('openssl')
Levente Polyak's avatar
Levente Polyak committed
makedepends=('chrpath')
replaces=('net-ssleay')
provides=('net-ssleay')
Levente Polyak's avatar
Levente Polyak committed
options=('!emptydirs')
Levente Polyak's avatar
Levente Polyak committed
source=(https://cpan.metacpan.org/authors/id/C/CH/CHRISN/${_cpanname}-${pkgver}.tar.gz)
sha512sums=('f1461667269f3da56ff7e1724b5511b95c34582250f8336e9f93d30f3b30d4a5360eb27622b9730bba11df75e00d717c7f0cea2120d20206723db136a8509375')
b2sums=('97cef98bf3794ec992817e5ad91f8403ded95e29184512d9f23b5cbbd765912d2e7f8e835366b40aae9682dd13947cd79e2d9dcca2d10cd78e3c7869b1e197db')
build() {
Levente Polyak's avatar
Levente Polyak committed
  cd ${_cpanname}-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
Giovanni Scafora's avatar
Giovanni Scafora committed
  make
}

Levente Polyak's avatar
Levente Polyak committed
check() {
  cd ${_cpanname}-${pkgver}
  make test
}

Giovanni Scafora's avatar
Giovanni Scafora committed
package() {
Levente Polyak's avatar
Levente Polyak committed
  cd ${_cpanname}-${pkgver}

  make install DESTDIR="${pkgdir}"
Levente Polyak's avatar
Levente Polyak committed
  install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
Levente Polyak's avatar
Levente Polyak committed

  # strip rpath
  find "${pkgdir}" -name '*.so' -exec chrpath -d '{}' \;
Levente Polyak's avatar
Levente Polyak committed

# vim: ts=2 sw=2 et: