aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-convert-color/APKBUILD
blob: 00b799f216684c9696fd06b3572337b8d3f6c7ad (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-convert-color
_pkgreal=Convert-Color
pkgver=0.11
pkgrel=0
pkgdesc="color space conversions and named lookups"
url="http://search.cpan.org/dist/Convert-Color/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-list-utilsby"
cpanmakedepends="perl-test-number-delta"
depends="$cpandepends perl-module-pluggable"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

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

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

md5sums="5d4ec8b804100dca53c6c406f2a83f4c  Convert-Color-0.11.tar.gz"
sha256sums="b41217c72931034ba4417d7a9e1e2999f04580d4e6b31c70993fedccc2440d38  Convert-Color-0.11.tar.gz"
sha512sums="add90dff917a8fbc553fbd67826bb66b59319f7331dc7e13c79c525b1cbc6ab2f01161a20caacf2de90b28794451b34e3f60b5f21a413177ba7e92a349fffaf6  Convert-Color-0.11.tar.gz"