From 69663fd0886a0be021600e753f4ffb07ce0b46e3 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 29 Oct 2012 09:25:20 +0000 Subject: testing/perl-cairo: new aport --- testing/perl-cairo/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/perl-cairo/APKBUILD (limited to 'testing/perl-cairo/APKBUILD') diff --git a/testing/perl-cairo/APKBUILD b/testing/perl-cairo/APKBUILD new file mode 100644 index 0000000000..8b554054e0 --- /dev/null +++ b/testing/perl-cairo/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=perl-cairo +_pkgreal=Cairo +pkgver=1.101 +pkgrel=0 +pkgdesc="Perl module for Cairo" +url="http://search.cpan.org/dist/Cairo/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig" +depends="$cpandepends" +makedepends="perl-dev cairo-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/$_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}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="f17ed922e1ed92ff016d159eb10dae27 Cairo-1.101.tar.gz" -- cgit v1.2.3