diff options
author | Jonathan Liu | 2015-11-19 14:17:41 +1100 |
---|---|---|
committer | Jonathan Liu | 2015-11-19 14:17:41 +1100 |
commit | b6fcb409295f96412ce79e06b7a0d1a474bf64ff (patch) | |
tree | 6ba010d5f8131e0b3da6e9d91408fd2216f8be82 /PKGBUILD | |
download | aur-swatchdog.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f65348d19a12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Jonathan Liu <net147@gmail.com> +# Contributor: Kevin Piche <kevin@archlinux.org> +# Contributor: K. Piche <kpiche@rogers.com> + +pkgname=swatchdog +pkgver=3.2.4 +pkgrel=1 +pkgdesc="The active log file monitoring tool" +arch=('any') +license=('GPL') +url="http://swatch.sourceforge.net/" +depends=('perl-date-calc' 'perl-date-manip' 'perl-file-tail' 'perl-timedate' 'perl>=5.10.0') +source=("http://downloads.sourceforge.net/sourceforge/swatch/${pkgname}-${pkgver}.tar.gz") +provides=('swatch') +conflicts=('swatch') +replaces=('swatch') +options=('!emptydirs') +md5sums=('df4c20ff7d3f6a46a2efd72a42078011') + +build() { + cd "${pkgname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "${pkgname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" +} + +check() { + cd "${pkgname}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +# vim:set ts=2 sw=2 et: |