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