aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-gd/APKBUILD
blob: f5535e6e0bde5119b49b9b2f8b1bc1c84ce28956 (plain) (blame)
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
46
47
# 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.71
pkgrel=0
pkgdesc="Perl module for GD"
url="https://metacpan.org/release/GD"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-extutils-pkgconfig"
depends="perl"
makedepends="perl-dev $cpanmakedepends gd-dev libjpeg-turbo-dev zlib-dev
	libpng-dev freetype-dev libwebp-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-$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="3a1555f07e6ab36a7218f24853f4168914be45e8c19ab0fe971ab044725dc0d7efeca75be2e4408406e69601f07e047fd3ea157acc9b9d339c9917a1c3e1f74d  GD-2.71.tar.gz"