summaryrefslogtreecommitdiff
path: root/reloc/build.sh
blob: d990600d180851690499b759dfe96c380f603aee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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="${_pkgdir}"
}