Skip to content

Instantly share code, notes, and snippets.

@bbidulock
Created January 9, 2016 23:21
Show Gist options
  • Save bbidulock/8153c7be66453f558298 to your computer and use it in GitHub Desktop.
Save bbidulock/8153c7be66453f558298 to your computer and use it in GitHub Desktop.
PKGBUILD for perl-test-without-module
# Maintainer: Piotr Rogoża <piotr dot r dot public at gmail dot com>
# Contributor: Piotr Rogoża <piotr dot r dot public at gmail dot com>
_author=C/CO/CORION
_perlmod=Test-Without-Module
pkgname=perl-test-without-module
pkgver=0.18
pkgrel=3
pkgdesc='Test::Without::Module - Test fallback behaviour in absence of modules'
arch=('any')
url="http://search.cpan.org/dist/Test-Without-Module/"
license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl')
checkdepends=(perl-file-slurp)
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz)
sha256sums=('e2c3360b171d7db518ac39a0e1dcb285c784ea393c11708914a0655d66138c7f')
build(){
cd $_perlmod-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check(){
cd $_perlmod-$pkgver
make test
}
package(){
cd $_perlmod-$pkgver
make install DESTDIR="${pkgdir}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment