makedepends=(perl-io-tty)
run=(perl)

description="IPC::Run - system() and background procs w/ piping, redirs, ptys"
url="URL: http://search.cpan.org/dist/IPC-Run"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=perl-ipc-run
version=20250809.0
release=3

source=(http://search.cpan.org/CPAN/authors/id/N/NJ/NJM/IPC-Run-$version.tar.gz)

build() {
  cd IPC-Run-$version

  perl Makefile.PL

  make OPTIMIZE="$CFLAGS"
  make install INSTALLDIRS=vendor DESTDIR=$PKG

  # Remove perllocal.pod and .packlist if present in the package
  for i in perllocal.pod .packlist; do
      find $PKG -name "$i" -exec rm -rf {} \;
  done
}
