# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Compress-Bzip2
pkgname=perl-${_realname}
pkgver=2.28
pkgrel=3
pkgdesc="Interface to Bzip2 compression library"
arch=('i686' 'x86_64')
license=(GPL2)
makedepends=('perl-devel' 'libbz2-devel')
depends=('perl' 'libbz2')
groups=('perl-modules')
url="https://metacpan.org/release/Compress-Bzip2"
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/R/RU/RURBAN/${_realname}-${pkgver}.tar.gz")
sha256sums=('859f835c3f5c998810d8b2a6f9e282ff99d6cb66ccfa55cae7e66dafb035116e')

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

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