public
anonymous / gist:3008269
Created

updated perl-net-twitter PKGBUILD

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# Contributor: minimalist <minimalist@lavabit.com>
# Generator : CPANPLUS::Dist::Arch 1.19
 
pkgname='perl-net-twitter'
pkgver='3.18003'
pkgrel='1'
pkgdesc="A perl interface to the Twitter API"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.8.1' 'perl-crypt-ssleay>=0.5' 'perl-data-visitor' 'perl-datetime>=0.51' 'perl-datetime-format-strptime>=1.09' 'perl-devel-stacktrace>=1.21' 'perl-digest-hmac' 'perl-html-parser' 'perl-http-message' 'perl-json' 'perl-libwww' 'perl-moose>=0.9' 'perl-moosex-aliases' 'perl-moosex-role-parameterized' 'perl-namespace-autoclean>=0.09' 'perl-net-oauth>=0.25' 'perl-try-tiny>=0.03' 'perl-uri>=1.4')
makedepends=('perl-extutils-makemaker>=6.59' 'perl-test-fatal')
url='http://search.cpan.org/dist/Net-Twitter'
source=('http://search.cpan.org/CPAN/authors/id/M/MM/MMIMS/Net-Twitter-3.18003.tar.gz')
md5sums=('4ec7f6bbc0f9159e5fc44fd0d52de645')
sha512sums=('a876c361fa98410515b36eed34d55de45d6c9f2789c536e0a1c7e5d7387f07919b0967eaac02842e0dc33cad0a0fb57a96a505a96aed949a6998ec5d95bc4a64')
_distdir="${srcdir}/Net-Twitter-3.18003"
 
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 "$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
 
check() {
cd "$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
 
package() {
cd "$_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:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.