summaryrefslogtreecommitdiff
path: root/extra/perl-event/PKGBUILD
blob: 24c4d81d9ba8639bed26f1e32d764dc81117665d (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
# $Id: PKGBUILD 160529 2012-06-02 10:27:35Z bluewind $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>
# Contributor: François Charette <francois.archlinux.org>

pkgname=perl-event
_srcname=Event
pkgver=1.20
pkgrel=2
pkgdesc="Framework for GUI events"
arch=('i686' 'x86_64' 'mips64el')
license=('PerlArtistic' 'GPL')
url="http://search.cpan.org/dist/${_srcname}/"
depends=('perl')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/J/JP/JPRIT/${_srcname}-${pkgver}.tar.gz)
md5sums=('bdbdf6c1b235c3e13c25f3b0491c5134')

build() {
  cd "${srcdir}/${_srcname}-${pkgver}"

  # install module in vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_srcname}-${pkgver}"
  make test
}

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