summaryrefslogtreecommitdiff
path: root/user/perl-devel-checkcompiler/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-devel-checkcompiler/APKBUILD')
-rw-r--r--user/perl-devel-checkcompiler/APKBUILD17
1 files changed, 7 insertions, 10 deletions
diff --git a/user/perl-devel-checkcompiler/APKBUILD b/user/perl-devel-checkcompiler/APKBUILD
index 6e99b7ced..11dd443f6 100644
--- a/user/perl-devel-checkcompiler/APKBUILD
+++ b/user/perl-devel-checkcompiler/APKBUILD
@@ -1,6 +1,10 @@
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-devel-checkcompiler
+_pkgreal=Devel-CheckCompiler
+_author=SYOHEX
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
pkgver=0.07
pkgrel=0
pkgdesc="Check the compiler's availability"
@@ -11,27 +15,20 @@ depends="perl"
makedepends="perl-dev perl-module-build-tiny"
install=""
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/S/SY/SYOHEX/Devel-CheckCompiler-$pkgver.tar.gz"
-builddir="$srcdir/Devel-CheckCompiler-$pkgver"
-
-prepare() {
- cd "$builddir"
- perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
-}
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
./Build
}
check() {
- cd "$builddir"
./Build test
}
package() {
- cd "$builddir"
./Build install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}