jobextra/patchelf/PKGBUILD

60 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=patchelf
pkgver=0.18.0
pkgrel=02
pkgdesc='Small utility to modify the dynamic linker and RPATH of ELF executables'
url='https://nixos.org/patchelf.html'
depends=('gcc-libs')
makedepends=(git)
#source=(https://github.com/NixOS/patchelf/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
source=(git+https://github.com/NixOS/patchelf.git#tag=${pkgver})
prepare() {
cd ${pkgname}
#cd ${pkgname}-${pkgver}
autoreconf -fiv
}
build() {
cd ${pkgname}
# cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname}
# cd ${pkgname}-${pkgver}
make -C tests -j1 check
}
package() {
cd ${pkgname}
# cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
#---- arch license gpg-key & sha256sums ----
arch=('x86_64')
license=('GPL-3.0-or-later')
sha512sums=('aaef42f053ad423cc7319d8e91a9cdab4370c53e1b222b87656815332cb578a71794dca18a4265e51dba500b1c641c65002e78d08ebdd8aade05c125d6697236')
b2sums=('53ab064726205671c511698359a617aca78f86cf5af9529649b8dda5f505a44bf8f8a4ed06272fe3eb923f9e34ff4de5dfc6f43b33fa8d22a9ff24076aa5b6c7')
#sha256sums=(1451d01ee3a21100340aed867d0b799f46f0b1749680028d38c3f5d0128fb8a7) # patchelf-0.18.0.tar.gz
## d8c4edece2a0ee6474eb9e5986d8deda5abaf4a6dbe6084c09b6af1c2147198f patchelf-0.18.0-02-x86_64.pkg.tar.lz