upgpkg: sbcl 2.2.11-1
[arch-packages.git] / perl-file-readbackwards / trunk / PKGBUILD
blobf074f22cde157967fe1c579d24e2b29a4505b909
2 # Contributor: 3ED <krzysztof1987 at gmail dot com>
4 pkgname=perl-file-readbackwards
5 _lastauthor=P/PL/PLICEASE
6 _pkgname=File-ReadBackwards
7 pkgver=1.06
8 pkgrel=3
9 pkgdesc="read a file backwards by lines"
10 arch=('any')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl')
14 makedepends=('perl-extutils-makemaker')
15 url="https://search.cpan.org/dist/${_pkgname}/"
16 source=(https://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
17 sha512sums=('43b7ebe58728272fbc0518fe6572b31061ba09665443240558b9035573d075c28b52d6230078f24616110d54e51477ad122c985d4fcdb3c3d288cb24e476fe45')
19 build() {
20   cd ${_pkgname}-${pkgver}
22   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
23     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
24     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
25     MODULEBUILDRC=/dev/null
27   perl Makefile.PL
28   make
30 check() {
31   cd ${_pkgname}-${pkgver}
32   make test
34 package() {
35   cd ${_pkgname}-${pkgver}
36   make install