aboutsummaryrefslogtreecommitdiff
path: root/scripts/patchelf/build.sh
blob: fb51cfc76a85a5206f04bb23cf8bd60c34ebf7e8 (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=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}"
}