summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu2015-11-19 14:17:41 +1100
committerJonathan Liu2015-11-19 14:17:41 +1100
commitb6fcb409295f96412ce79e06b7a0d1a474bf64ff (patch)
tree6ba010d5f8131e0b3da6e9d91408fd2216f8be82
downloadaur-swatchdog.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD41
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..306d0960e889
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = swatchdog
+ pkgdesc = The active log file monitoring tool
+ pkgver = 3.2.4
+ pkgrel = 1
+ url = http://swatch.sourceforge.net/
+ arch = any
+ license = GPL
+ depends = perl-date-calc
+ depends = perl-date-manip
+ depends = perl-file-tail
+ depends = perl-timedate
+ depends = perl>=5.10.0
+ provides = swatch
+ conflicts = swatch
+ replaces = swatch
+ options = !emptydirs
+ source = http://downloads.sourceforge.net/sourceforge/swatch/swatchdog-3.2.4.tar.gz
+ md5sums = df4c20ff7d3f6a46a2efd72a42078011
+
+pkgname = swatchdog
+
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: