aboutsummaryrefslogtreecommitdiff
path: root/scripts/pkg-config/build.sh
blob: 42a97b0f1b4463e7d905bb7831801bfbf4595719 (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
#!/bin/bash
name=pkg-config
version=0.29.2
revision=0
sources=(
    "https://pkg-config.freedesktop.org/releases/${name}-${version}.tar.gz"
)
build_depends=(
    "automake"
    "autoconf"
)
depends=()

function prepare() {
    tar xf ${name}-${version}.tar.gz
    cd ${name}-${version}
}

function build() {
    ./configure --prefix="${prefix}"
    make -j${maxjobs}
}

function package() {
    make install DESTDIR="${destdir}"
}