aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-compress-raw-zlib/APKBUILD
blob: 4eb97bdb63f6b8409720710aa1d5e16c35b3f082 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      

                              
            
        
                                                              
                                                    
          


                          
                                                                                       
                                     
 
         









                                                                 


           
                    
                                      
                                                                           

                                                    
                                      

 
                                                                                                                                                                             
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-compress-raw-zlib
_realname=Compress-Raw-Zlib
pkgver=2.086
pkgrel=1
pkgdesc="Perl low-level interface to zlib compression library"
url="http://search.cpan.org/dist/Compress-Raw-Zlib/"
arch="all"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/${_realname}-${pkgver}.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

build() {
	cd $builddir
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make test
}

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete

	# man pages are already provided by perl-doc
	rm -rf "$pkgdir"/usr/share/man
}

sha512sums="a065d09f7ee78d11c1734cf6aa9f23cb9f2fe567083aece7f292466ea3f18687f08cc7f4bfb0da0c8562d377ac2a466808cbcc211a785a39eb3e934e4301d98e  Compress-Raw-Zlib-2.086.tar.gz"