summaryrefslogtreecommitdiff
path: root/perl-file-monitor/PKGBUILD
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-file-monitor/PKGBUILD
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
Diffstat (limited to 'perl-file-monitor/PKGBUILD')
-rw-r--r--perl-file-monitor/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/perl-file-monitor/PKGBUILD b/perl-file-monitor/PKGBUILD
index 3f5989324..3ddcfefae 100644
--- a/perl-file-monitor/PKGBUILD
+++ b/perl-file-monitor/PKGBUILD
@@ -6,6 +6,7 @@ pkgname=perl-file-monitor
_realname=File-Monitor
pkgver=1.00
pkgrel=0
+_distdir="${_realname}-${pkgver}"
pkgdesc="Portable implementation of file-mon"
arch=(any)
url="http://search.cpan.org/~andya/File-Monitor-1.00/lib/File/Monitor.pm"
@@ -13,16 +14,21 @@ license=(GPL PerlArtistic)
depends=(perl)
options=('!emptydirs')
_author=PLICEASE
-source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/${_realname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/${_distdir}.tar.gz")
sha512sums=('86d38c4664c1ebdbc40c01f1837697cf6a8e7b58c3bb3b5ee731fc2e1340f0150d842990bea8bd8baa19dfa87db7912ba929f494a38ec5f8c546d1883eeb9628')
build() {
- cd "$srcdir/${_realname}-${pkgver}"
+ cd "$srcdir/${_distdir}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd "$srcdir/${_distdir}"
+ make test
+}
+
package() {
- cd "$srcdir/${_realname}-${pkgver}"
+ cd "$srcdir/${_distdir}"
make install DESTDIR="$pkgdir"
}