# Description: A small utility to modify the dynamic linker and RPATH of ELF executables.
# URL: https://github.com/Nixos/patchelf
# Maintainer: Tim Biermann, tbier at posteo dot de

name=patchelf
version=0.18.0
release=1
source=(https://github.com/Nixos/$name/archive/$version/$name-$version.tar.gz)

build() {
  cd $name-$version
  ./bootstrap.sh
  ./configure --prefix=/usr
  make
  make DESTDIR=$PKG install

  prt-get isinst zsh || rm -rf $PKG/usr/share/zsh/

  rm -r $PKG/usr/share/doc
}
