aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-ole-storage_lite/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-ole-storage_lite/APKBUILD')
-rw-r--r--community/perl-ole-storage_lite/APKBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/community/perl-ole-storage_lite/APKBUILD b/community/perl-ole-storage_lite/APKBUILD
index f2032dfcc4..ab0951dcd5 100644
--- a/community/perl-ole-storage_lite/APKBUILD
+++ b/community/perl-ole-storage_lite/APKBUILD
@@ -4,35 +4,42 @@
pkgname=perl-ole-storage_lite
_pkgreal=OLE-Storage_Lite
pkgver=0.19
-pkgrel=0
+pkgrel=1
pkgdesc="Read and write OLE storage files."
url="http://search.cpan.org/dist/OLE-Storage_Lite/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
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
}