summaryrefslogtreecommitdiff
path: root/perl-file-monitor/PKGBUILD
blob: b53a5ad0af45883fb9b58b54158fe15b479954e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer:  Erich Eckner <arch at eckner dot net>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com
# Contributor: Charles Mauch <cmauch@gmail.com>

pkgname=perl-file-monitor
_realname=File-Monitor
pkgver=1.00
pkgrel='5'
_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"
license=(GPL PerlArtistic)
provides=(
  'perl-file-monitor-base=1.00'
  'perl-file-monitor-delta=1.00'
  'perl-file-monitor-object=1.00')
depends=(
  'perl-test-simple'
  'perl-version')
makedepends=(
  'perl-module-build>=0.36')
checkdepends=(
  'perl-test-pod'
  'perl-test-pod-coverage')
options=('!emptydirs')
_author=PLICEASE
source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/${_distdir}.tar.gz")
sha512sums=('86d38c4664c1ebdbc40c01f1837697cf6a8e7b58c3bb3b5ee731fc2e1340f0150d842990bea8bd8baa19dfa87db7912ba929f494a38ec5f8c546d1883eeb9628')

build() {
  cd "$srcdir/${_distdir}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/${_distdir}"
  make test
}

package() {
  cd "$srcdir/${_distdir}"
  make install DESTDIR="$pkgdir"
}