summaryrefslogtreecommitdiff
path: root/perl-syntax-highlight-perl
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
committerErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
commitf6e08b5f0a9647bce466a38e9833cdf9b2b034d6 (patch)
tree6a508b21454687aa188deb1ef0490f1af4e7368f /perl-syntax-highlight-perl
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe.git.save-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-syntax-highlight-perl')
-rw-r--r--perl-syntax-highlight-perl/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/perl-syntax-highlight-perl/PKGBUILD b/perl-syntax-highlight-perl/PKGBUILD
index 0f2a84a3..7ece515c 100644
--- a/perl-syntax-highlight-perl/PKGBUILD
+++ b/perl-syntax-highlight-perl/PKGBUILD
@@ -5,24 +5,30 @@ pkgname=perl-syntax-highlight-perl
_perlmod=Syntax-Highlight-Perl
pkgver=1.0
pkgrel=4
+_distdir="${_perlmod}-${pkgver}"
pkgdesc="Syntax-Highlight-Perl perl module (highlighting of Perl Syntactical Structures)"
arch=("any")
url="http://search.cpan.org/~johnsca/Syntax-Highlight-Perl/"
license=("GPL" "Artistic")
depends=('perl>=5.10.0')
-source=(http://search.cpan.org/CPAN/authors/id/J/JO/JOHNSCA/$_perlmod-$pkgver.tar.gz)
+source=(http://search.cpan.org/CPAN/authors/id/J/JO/JOHNSCA/${_distdir}.tar.gz)
sha512sums=('be1959493fb563137095e0b151fa56fe2192d1c4bf52e2ef32d6d2310b821a905e675a443e4cfb83da7d0dfa4cc267ac087d49d0ee807a07413cf839621ebe8b')
options=(!emptydirs)
build() {
- cd $srcdir/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
# Install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd "${srcdir}/${_distdir}"
+ make test
+}
+
package() {
- cd $srcdir/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
make install DESTDIR="$pkgdir/"
}