From 64d18759268b65b24db67fba3dcf6a18f3170299 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 31 Jul 2021 11:31:33 +0000 Subject: [PATCH] Added patchelf --- pkgs/patchelf/build.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/patchelf/build.sh diff --git a/pkgs/patchelf/build.sh b/pkgs/patchelf/build.sh new file mode 100644 index 0000000..a33438e --- /dev/null +++ b/pkgs/patchelf/build.sh @@ -0,0 +1,29 @@ +pkgname=patchelf +pkgver=0.12 + +fetch() { + curl -L "https://github.com/NixOS/patchelf/releases/download/0.12/patchelf-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2 + tar -xf $pkgname-$pkgver.tar.bz2 + mv $pkgname-$pkgver*/ $pkgname-$pkgver +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --build=$TRIPLE \ + --host=$TRIPLE + + make +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +}