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

_realname=Devel-GlobalDestruction
pkgname=perl-${_realname}
pkgver=0.14
pkgrel=3
pkgdesc="Expose the flag which marks global"
arch=('any')
url="https://metacpan.org/release/Sub-Exporter"
msys2_references=(
  'purl: pkg:cpan/HAARG/Devel-GlobalDestruction'
)
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-Sub-Exporter' 'perl-Sub-Exporter-Progressive')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Devel-GlobalDestruction-${pkgver}.tar.gz)
sha512sums=('75c346feae98897fb202dea0295f0225bf3cac59f21915da5dd1cdcf845052f4f8bcd0362d357020fb0facb6358175112b3685860ca1c1f173421c7c6a54f45d')

prepare() {
  cd ${_realname}-${pkgver}
}

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

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