# Description: Run commands simply, with detailed diagnostics
# URL: https://metacpan.org/release/IPC-System-Simple
# Maintainer: John McQuah, jmcquah at disroot dot org

name=p5-ipc-system-simple
_author=JKEENAN
version=1.30
release=1
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/IPC-System-Simple-$version.tar.gz)

build() {
	cd IPC-System-Simple-$version

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
	make DESTDIR="$PKG" install

	find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
	find $PKG -depth -empty -delete
	find $PKG \( -type f -a ! -perm -u+w \) -exec chmod u+w '{}' +
}
