# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-config-ini
pkgver=0.025
pkgrel='6'
pkgdesc="Perl extension for config ini's"
arch=('any')
url="https://github.com/rjbs/Config-INI"
license=('GPL' 'PerlArtistic')
groups=()
depends=(
  'perl>=5.28'
  'perl<5.29'
  'perl-carp'
  'perl-mixin-linewise>=0.105')
makedepends=(
  'perl-extutils-makemaker'
  'perl-io'
  'perl-pathtools'
  'perl-test-simple>=0.96')
checkdepends=()
replaces=()
backup=()
options=()
_distdir="Config-INI-${pkgver}"
source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/${_distdir}.tar.gz")
sha256sums=('628bf76d5b91f89dde22d4813ec033026ebf71b772bb61ccda909da00c869732')

build() {

    cd ${_distdir}

    perl Makefile.PL
    make

}

check() {

    cd ${_distdir}

    make test

}

package() {

    cd ${_distdir}

    make DESTDIR="${pkgdir}" install

}