Skip to content

Instantly share code, notes, and snippets.

@jasonwryan
Created July 7, 2015 22:04
Show Gist options
  • Save jasonwryan/a57a0eaff41f17a96646 to your computer and use it in GitHub Desktop.
Save jasonwryan/a57a0eaff41f17a96646 to your computer and use it in GitHub Desktop.
CryptX PKGBUILD
# CPAN Name : CryptX
# Contributor: Drathir <[email protected]>
# Generator : CPANPLUS::Dist::Arch 1.30
pkgname='perl-cryptx'
_cpanname='CryptX'
pkgver='0.024'
pkgrel='1'
pkgdesc="Crypto toolkit (self-contained no external libraries needed)"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-json>=2.01' 'perl>=5.006')
makedepends=()
url='https://metacpan.org/release/CryptX'
source=('https://cpan.metacpan.org/authors/id/M/MI/MIK/CryptX-0.024.tar.gz')
md5sums=('1847e5f78d58497965ac83331183b418')
sha512sums=('1e3d287f82f2505d5643a8e5db8705133392dad90c25f6680250fcd9b2854a65581cb0aa8e05ea2a910d7a91ffc748e1326bd7e43a7253d3763b634f217d65dc')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd "$srcdir/${_cpanname}-${pkgver}"
/usr/bin/perl Build.PL
/usr/bin/perl Build
)
}
check() {
cd "$srcdir/${_cpanname}-${pkgver}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
/usr/bin/perl Build test
)
}
package() {
cd "$srcdir/${_cpanname}-${pkgver}"
/usr/bin/perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment