pkgname=patchelf pkgver=0.18.0 pkgrel=1 pkgdesc="Small utility to modify the dynamic linker and RPATH of ELF executables" arch=('x86_64') url="https://nixos.org/patchelf.html" license=('GPL-3.0-or-later') depends=('gcc-libs') source=(https://github.com/NixOS/patchelf/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(64de10e4c6b8b8379db7e87f58030f336ea747c0515f381132e810dbf84a86e7) build() { cd ${pkgname}-${pkgver} local configure_args=( --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }