Advertisement
Guest User

Untitled

a guest
Feb 18th, 2021
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. # CPAN Name : Compress-Raw-Lzma
  2. # Contributor: Asger Hautop Drewsen <asgerdrewsen@gmail.com>
  3. # Generator : CPANPLUS::Dist::Arch 1.32
  4.  
  5. pkgname='perl-compress-raw-lzma'
  6. pkgver='2.100'
  7. pkgrel='1'
  8. pkgdesc="Low-Level Interface to lzma compression library"
  9. arch=('i686' 'x86_64')
  10. license=('PerlArtistic' 'GPL')
  11. options=('!emptydirs')
  12. depends=('perl>=0' 'xz>=5.2.4')
  13. makedepends=()
  14. url='https://metacpan.org/release/Compress-Raw-Lzma'
  15. source=('https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Raw-Lzma-2.100.tar.gz')
  16. md5sums=('dc820edd990901b829af2308975f7632')
  17. sha512sums=('cad68ec26a2bae264feb02e25e8f3bb92cff75cd87bc28c829b4a1e8fbf742b3cf3b20c429063bd74a0cb7a82300e2dc6342e57fb8493a7ebb9b751b400f0b2e')
  18. _distdir="Compress-Raw-Lzma-2.100"
  19.  
  20. build() {
  21. ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
  22. PERL_AUTOINSTALL=--skipdeps \
  23. PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
  24. PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  25. MODULEBUILDRC=/dev/null
  26.  
  27. cd "$srcdir/$_distdir"
  28. /usr/bin/perl Makefile.PL
  29. make
  30. )
  31. }
  32.  
  33. check() {
  34. cd "$srcdir/$_distdir"
  35. ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  36. make test
  37. )
  38. }
  39.  
  40. package() {
  41. cd "$srcdir/$_distdir"
  42. make install
  43. find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  44. }
  45.  
  46. # Local Variables:
  47. # mode: shell-script
  48. # sh-basic-offset: 2
  49. # End:
  50. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement