aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-gd/APKBUILD
blob: c562c046cafe87ddc83bbd6bac4e1a61d3bcf538 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-gd
_pkgreal=GD
pkgver=2.56
pkgrel=0
pkgdesc="Perl module for GD"
url="http://search.cpan.org/dist/GD/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build gd-dev libjpeg-turbo-dev zlib-dev libpng-dev freetype-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LD/LDS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	rm "$pkgdir"/usr/bin/bdftogd
}

md5sums="c4b3afd98b2c4ce3c2e1027d101a8f1e  GD-2.56.tar.gz"
sha256sums="1f103d1c98de8621504642ed7fb79f1b40f5f6a63c2abe9390a8ab78617248f9  GD-2.56.tar.gz"
sha512sums="51c4b46b199625a12ae1ad1003cafe4e66913d1e0c0b51d9bccbc7c14a86dfe29144caefbeca2927a66a44d4ba8b134550ee4a63eb86aceaa13513c46a4e71f4  GD-2.56.tar.gz"