summaryrefslogtreecommitdiff
path: root/portsToCome/perl-zip/Pkgfile
blob: dd28f346dc2f765f2e95b788d53e5232a9550b7a (plain)
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
# Description:  Perl module Archive::Zip
# URL:          http://search.cpan.org/dist/Net-HTTP
# Maintainer:   Erich Eckner, crux at eckner dot net
#
# Depends on:   perl

name=perl-zip
version=1.53
release=1
source=(http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-$version.tar.gz)

build() {
    cd Archive-Zip-$version

	perl Makefile.PL
	make CC="${CC:-gcc}" LD="${CC:-gcc}" OPTIMIZE="$CFLAGS"
	make DESTDIR=$PKG install

	find $PKG -type f \( \
		-name ".packlist" -o \
		-name "*.bs" -o \
		-name "autosplit.ix" -o \
		-name "perllocal.pod" \) -delete

	find $PKG -depth -empty -delete

}