contrib/p5-gd/Pkgfile

20 lines
638 B
Plaintext
Raw Normal View History

2019-10-15 07:27:52 +02:00
# Description: Perl interface to GD graphics library
2017-06-25 11:05:49 +02:00
# URL: http://search.cpan.org/dist/GD/
2008-05-03 16:13:23 +02:00
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
2017-06-25 11:05:49 +02:00
# Depends on: libgd p5-extutils-pkgconfig
2008-05-03 16:13:23 +02:00
name=p5-gd
2019-10-15 07:27:52 +02:00
version=2.71
2008-05-03 16:13:23 +02:00
release=1
2017-06-25 11:05:49 +02:00
source=(http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/GD-$version.tar.gz)
2008-05-03 16:13:23 +02:00
2017-06-25 11:05:49 +02:00
build() {
install -d $PKG/usr/bin
2008-05-03 16:13:23 +02:00
cd GD-$version
2017-06-25 11:05:49 +02:00
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps"
2008-05-03 16:13:23 +02:00
perl Makefile.PL
make OPTIMIZE="${CFLAGS}"
make DESTDIR=${PKG} install
find $PKG \( \( -depth -empty \) -o \( -name .packlist -o -name '*.bs' -o -name autosplit.ix -o -name perllocal.pod \) \) -exec rm -rf {} \;
}