Advertisement
Guest User

perl-sys-meminfo v0.99 PKGBUILD

a guest
Feb 8th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. pkgname='perl-sys-meminfo'
  2. pkgver='0.99'
  3. pkgrel='1'
  4. pkgdesc="Perl extension for return the total amount of physical memory"
  5. arch=('any')
  6. license=('PerlArtistic' 'GPL')
  7. options=('!emptydirs')
  8. depends=('perl')
  9. makedepends=()
  10. url='http://search.cpan.org/dist/Sys-MemInfo'
  11. source=('http://search.cpan.org/CPAN/authors/id/S/SC/SCRESTO/Sys-MemInfo-0.99.tar.gz')
  12. _distdir="Sys-MemInfo-0.99"
  13. md5sums=('88f0632691d7de91cbed95ba1ff29025')
  14. sha512sums=('ad0f8a12db7f7c643d0eb2d68fb1dcbff43928b786d390243e89d88537bd99360f88af177678ce5141e3870224da80ea5a432c465e8c7ec384abd21014c0e1c0')
  15.  
  16. build() {
  17.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
  18.       PERL_AUTOINSTALL=--skipdeps                            \
  19.       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
  20.       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  21.       MODULEBUILDRC=/dev/null
  22.  
  23.     cd "$srcdir/$_distdir"
  24.     /usr/bin/perl Makefile.PL
  25.     make
  26.   )
  27. }
  28.  
  29. check() {
  30.   cd "$srcdir/$_distdir"
  31.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  32.     make test
  33.   )
  34. }
  35.  
  36. package() {
  37.   cd "$srcdir/$_distdir"
  38.   make install
  39.  
  40.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement