summaryrefslogtreecommitdiff
path: root/p5-extutils-pkgconfig/Pkgfile
blob: 80f446632b9ae63275a8b4170b9cafe36b7b5b23 (plain)
    1 # Description: Perl bindings for pkgconfig
    2 # URL:         https://metacpan.org/pod/ExtUtils::PkgConfig
    3 # Maintainer:  John Vogel, jvogel4 at stny dot rr dot com
    4 # Depends on:  p5-xml-parser
    5 
    6 name=p5-extutils-pkgconfig
    7 version=1.16
    8 release=2
    9 source=(https://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-$version.tar.gz)
   10 
   11 build() {
   12 	cd ExtUtils-PkgConfig-$version
   13 	perl Makefile.PL
   14 
   15 	make OPTIMIZE="$CFLAGS"
   16 	make install DESTDIR=$PKG
   17 
   18 	find $PKG -type f -a ! -perm -u+w | xargs chmod u+w
   19 	find $PKG \
   20 		-name perllocal.pod \
   21 		-o -name "*.bs" \
   22 		-o -name .packlist | xargs rm
   23 	find $PKG -empty | xargs rmdir -p ||:
   24 }

Generated by cgit