aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-test-notabs/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-05-14 14:43:28 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-05-14 14:45:42 +0000
commitba619feef62489e8a503e6a31df04e7a3eed68f7 (patch)
tree1c9c337af242a8385f0cd73b50133fd9f18a3f0f /testing/perl-test-notabs/APKBUILD
parent4ae0a3a550e48e229e84b53de19bd652544cc502 (diff)
downloadaports-ba619feef62489e8a503e6a31df04e7a3eed68f7.tar.gz
aports-ba619feef62489e8a503e6a31df04e7a3eed68f7.tar.bz2
aports-ba619feef62489e8a503e6a31df04e7a3eed68f7.tar.xz
testing/perl-test-notabs: new aport
Diffstat (limited to 'testing/perl-test-notabs/APKBUILD')
-rw-r--r--testing/perl-test-notabs/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-test-notabs/APKBUILD b/testing/perl-test-notabs/APKBUILD
new file mode 100644
index 0000000000..90e51b034e
--- /dev/null
+++ b/testing/perl-test-notabs/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
+# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
+pkgname=perl-test-notabs
+_pkgreal=Test-NoTabs
+pkgver=2.02
+pkgrel=0
+pkgdesc="Check the presence of tabs in your project"
+url="http://search.cpan.org/dist/Test-NoTabs/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="e7bd189fde1b35f67569ea702735ead8595684807491cf1635cb6a7d9360adca23d411ec1a165796afc45d55d1a724e07cecf8ddbd06206d4fe38f553954af3a Test-NoTabs-2.02.tar.gz"