summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbbdff5e003c4cf18400cc637328d22ed8f83631 (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
46
47
# Maintainer: Simon Perry <aur [at] sanxion [dot] net>

_perlmod=GnuPG-Interface
pkgname=perl-gnupg-interface
pkgver=0.52
pkgrel=3
pkgdesc="Object methods for interacting with GnuPG"
arch=('any')
url="http://search.cpan.org/dist/GnuPG-Interface"
license=('GPL' 'PerlArtistic')
groups=()
depends=('gnupg' 'perl-moox-late' 'perl-moox-handlesvia')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_perlmod-$pkgver.tar.gz")
sha256sums=('247a9f5a88bb6745281c00d0f7d5d94e8599a92396849fd9571356dda047fd35')
_distdir="$_perlmod-$pkgver"

build() {
  cd "$_distdir/test"
  gpg --list-keys --homedir . >/dev/null

  cd "$srcdir/$_perlmod-$pkgver"

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

  ## For packages with Build.PL, do this instead:
  # perl Build.PL installdirs=vendor destdir="$pkgdir/"
  # perl Build
}

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

  ## For packages with Build.PL, do this instead:
  # perl Build install
}

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