summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36710ae44424926dcbd930aad26d3fd6bd4ba0a9 (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
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=perl-file-fcntllock
_perlmod=File-FcntlLock
pkgver=0.22
pkgrel=1
pkgdesc="Perl module for file locking with fcntl(2)"
arch=('any')
url="http://search.cpan.org/dist/$_perlmod/"
license=('GPL' 'PerlArtistic')
groups=()
depends=('perl>=5.10.0')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://search.cpan.org/CPAN/authors/id/J/JT/JTT/$_perlmod-$pkgver.tar.gz)
sha256sums=('9a9abb2efff93ab73741a128d3f700e525273546c15d04e7c51c704ab09dbcdf')

build() {
  cd "$srcdir/$_perlmod-$pkgver"

  # Install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/$_perlmod-$pkgver"
  make test
}
package() {
  cd "$srcdir/$_perlmod-$pkgver"
  make install DESTDIR="$pkgdir/"
}

# vim:set ts=2 sw=2 et: