aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbix-datasource
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:26:06 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:26:06 +0000
commita85cf594bb7feb6115aa65609894b9ab0d3f8c0c (patch)
tree38faef53603ce40c6a417814318f312e249b0e58 /testing/perl-dbix-datasource
parent678b677eca41de01e6936dab0041316558845f20 (diff)
downloadaports-a85cf594bb7feb6115aa65609894b9ab0d3f8c0c.tar.bz2
aports-a85cf594bb7feb6115aa65609894b9ab0d3f8c0c.tar.xz
testing/perl-dbix-datasource: modernize and add package description
Diffstat (limited to 'testing/perl-dbix-datasource')
-rw-r--r--testing/perl-dbix-datasource/APKBUILD25
1 files changed, 16 insertions, 9 deletions
diff --git a/testing/perl-dbix-datasource/APKBUILD b/testing/perl-dbix-datasource/APKBUILD
index bf163da4cd..47901b7b38 100644
--- a/testing/perl-dbix-datasource/APKBUILD
+++ b/testing/perl-dbix-datasource/APKBUILD
@@ -4,8 +4,8 @@
pkgname=perl-dbix-datasource
_pkgreal=DBIx-DataSource
pkgver=0.02
-pkgrel=0
-pkgdesc="unknown"
+pkgrel=1
+pkgdesc="Database-independant create and drop functions"
url="http://search.cpan.org/dist/DBIx-DataSource/"
arch="noarch"
license="GPL PerlArtistic"
@@ -16,22 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IV/IVAN/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ 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="12d60ad75ceced40286d18fcdcb5a40b DBIx-DataSource-0.02.tar.gz"
+sha512sums="03a177d749d92852fc106085202ac80bcf53744012961fe789e29793eb500cae3705787e720ba8f06eca6c84b2f3388c7f24a2aa5420962ac61d5be8a7edbbcc DBIx-DataSource-0.02.tar.gz"