diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 00:50:40 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 00:50:40 +0000 |
commit | 1de0f1a602de9aa918179b304cf86ac1aae01c47 (patch) | |
tree | 4036232464baf0a3577f3aa353261ada329975f0 /testing/perl-cairo | |
parent | bfba03a35925d6767966ed1cbb49a65fbe67d4d5 (diff) | |
download | aports-1de0f1a602de9aa918179b304cf86ac1aae01c47.tar.bz2 aports-1de0f1a602de9aa918179b304cf86ac1aae01c47.tar.xz |
testing/perl-cairo: modernize APKBUILD
Diffstat (limited to 'testing/perl-cairo')
-rw-r--r-- | testing/perl-cairo/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/testing/perl-cairo/APKBUILD b/testing/perl-cairo/APKBUILD index 1889663756..61e575a86d 100644 --- a/testing/perl-cairo/APKBUILD +++ b/testing/perl-cairo/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-cairo _pkgreal=Cairo pkgver=1.106 -pkgrel=2 +pkgrel=3 pkgdesc="Perl module for Cairo" url="http://search.cpan.org/dist/Cairo/" arch="all" @@ -16,29 +16,32 @@ makedepends="perl-dev cairo-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Cairo-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" if [ -e Build.PL ]; then - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor else - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="47ca0ae0f5b9bc4c16a27627ff48bd8b Cairo-1.106.tar.gz" -sha256sums="e64803018bc7cba49e73e258547f5378cc4249797beafec524852140f49c45c4 Cairo-1.106.tar.gz" sha512sums="190435f99e4c7a8f5e8d48834639b9e12c6bc4d5dfe721a2820de3479dd3f2144e1fc1ea74e7796fd7b219a45591b55c7648488e6dd276106bc5e51b0467fee7 Cairo-1.106.tar.gz" |