# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>

pkgname=perl-anyevent-i3
pkgver=0.19
pkgrel=2
pkgdesc="Communicate with the i3 window manager"
arch=('any')
url='https://search.cpan.org/~mstplbg/AnyEvent-I3/'
license=('GPL')
depends=('perl' 'perl-anyevent' 'perl-json-xs')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/M/MS/MSTPLBG/AnyEvent-I3-${pkgver}.tar.gz)
sha256sums=('1bcd3b60db3d5560148de791353e8af1172264f5a85e77197b9ffc041dac483a')

build() {
  cd AnyEvent-I3-${pkgver}
  PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd AnyEvent-I3-${pkgver}
  make test
}

package() {
  cd AnyEvent-I3-${pkgver}
  make install DESTDIR="${pkgdir}"
}
