aboutsummaryrefslogtreecommitdiff
path: root/scripts/patchelf/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patchelf/build.sh')
-rw-r--r--scripts/patchelf/build.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/patchelf/build.sh b/scripts/patchelf/build.sh
new file mode 100644
index 0000000..fb51cfc
--- /dev/null
+++ b/scripts/patchelf/build.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+name=patchelf
+version=0.10
+revision=0
+sources=("https://github.com/NixOS/${name}/archive/${version}.tar.gz")
+build_depends=(
+ "automake"
+ "autoconf"
+)
+depends=()
+
+function prepare() {
+ tar xf ${version}.tar.gz
+ cd ${name}-${version}
+}
+
+function build() {
+ ./bootstrap.sh
+ ./configure --prefix="${prefix}"
+ make -j${maxjobs}
+}
+
+function package() {
+ make install DESTDIR="${destdir}"
+}
+
+