blob: 57d9544e3db98a21cc77349b1e62a82b99821906 (
plain) (
tree)
|
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-gd
_pkgreal=GD
pkgver=2.70
pkgrel=0
pkgdesc="Perl module for GD graphics library"
url="https://metacpan.org/release/GD"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
cpandepends=""
cpanmakedepends="perl-extutils-pkgconfig"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends freetype-dev libgd-dev libjpeg-turbo-dev
libpng-dev libwebp-dev zlib-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor
else
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
fi
}
build() {
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="07175fca2564e2b73b8cb15ebadbdafb2cac388a7a1ff35e64604c63966eecd428fe46831122b6f03ef6e0cca5d5886f5fc375d389b3b981379d9d7d0f1c55c1 GD-2.70.tar.gz"
|