aboutsummaryrefslogtreecommitdiff
path: root/scripts/patchelf/build.sh
blob: 694ae0971403ad36a91c0e073ad412c93fc79e4d (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
28
29
30
#!/bin/bash
disable_base=1
name=patchelf
version=0.10
revision=0
sources=("https://github.com/NixOS/${name}/archive/${version}.tar.gz")
build_depends=(
    "autoconf"
    "automake"
    "gcc"
    "binutils"
)
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}"
}