aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-glib
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-29 09:20:47 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-29 09:20:47 +0000
commitc35930784cf088aa727fb82c9c26763117b2c49e (patch)
tree783f7241a21fa81e706ac113c5629c59f20e1c12 /testing/perl-glib
parent43b76775ab226c278aac49d05b783d22cdfbaf4d (diff)
downloadaports-c35930784cf088aa727fb82c9c26763117b2c49e.tar.bz2
aports-c35930784cf088aa727fb82c9c26763117b2c49e.tar.xz
testing/perl-glib: new aport
Diffstat (limited to 'testing/perl-glib')
-rw-r--r--testing/perl-glib/APKBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/testing/perl-glib/APKBUILD b/testing/perl-glib/APKBUILD
index 66385fccc7..4bad9ffda3 100644
--- a/testing/perl-glib/APKBUILD
+++ b/testing/perl-glib/APKBUILD
@@ -1,26 +1,30 @@
# Automatically generated by apkbuild-cpan, template 1
-# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
-# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-glib
_pkgreal=Glib
-pkgver=1.261
+pkgver=1.262
pkgrel=0
-pkgdesc="Perl wrappers for the GLib utility and Object libraries"
+pkgdesc="Perl module for Glib"
url="http://search.cpan.org/dist/Glib/"
arch="all"
license="GPL PerlArtistic"
-cpandepends="perl-extutils-pkgconfig perl-extutils-depends"
-cpanmakedepends=""
+cpandepends=""
+cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig"
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends glib-dev"
+makedepends="perl-dev glib-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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() {
@@ -28,10 +32,12 @@ build() {
make && make test
}
+
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="1e060e6af3514675d13220a2fde0c789 Glib-1.261.tar.gz"
+
+md5sums="6afadccac6d66570dbdf0ed6bdd69b0e Glib-1.262.tar.gz"