app=chrpath
version=0.16
build=1sml
homepage="https://chrpath.alioth.debian.org/"
download="https://alioth.debian.org/frs/download.php/latestfile/813/chrpath-$version.tar.gz"
desc="Program to modify rpath aka dynamic library load path of binaries"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --mandir=/share/man

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
aa04d490f78bff20a56fe20539cec10218c0772a668909eda8324ca825f51e8ef92001e95d9c316e79a145a043c9c327ec94d1a82e104ab408ca1021832745aa  chrpath-0.16.tar.gz
"
