# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-text-markdown
pkgver=1.000031
pkgrel=11
pkgdesc="Perl/CPAN Module Text::Markdown"
arch=("any")
url="https://search.cpan.org/dist/Text-Markdown"
license=("GPL" "PerlArtistic")
depends=('perl')
source=("https://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Text-Markdown-$pkgver.tar.gz")
md5sums=('88ace17b0debebe88f0ea45a76c397ed')

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

package() {
  cd "$srcdir"/Text-Markdown-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
