Created
April 24, 2016 23:13
-
-
Save jnbek/cd9a0629c3636979a94856fd5cbc82f5 to your computer and use it in GitHub Desktop.
perl-dbix-contextualfetch PKGBUILD updated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kgname='perl-dbix-contextualfetch' | |
pkgver='1.03' | |
pkgrel='1' | |
pkgdesc="Add contextual fetches to DBI" | |
arch=('any') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') | |
depends=('perl-dbi>=1.35') | |
makedepends=() | |
url='https://metacpan.org/release/DBIx-ContextualFetch' | |
source=('http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-1.03.tar.gz') | |
md5sums=('20a78432ae26b266216b7b30ff7941c3') | |
sha512sums=('e563bb56026bc8f15ced939696caaa1532aa71def6603cf3e941016a1337ca090053e30c582623413af50008ea8f4c62981cb94a4f75d423d53d015300c66885') | |
_distdir="DBIx-ContextualFetch-1.03" | |
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/$_distdir" | |
/usr/bin/perl Makefile.PL | |
make | |
) | |
} | |
check() { | |
cd "$srcdir/$_distdir" | |
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" | |
make test | |
) | |
} | |
package() { | |
cd "$srcdir/$_distdir" | |
make install | |
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete | |
} | |
# Local Variables: | |
# mode: shell-script | |
# sh-basic-offset: 2 | |
# End: | |
# 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