summaryrefslogtreecommitdiff
path: root/pkg-config/build.sh
blob: 9c9c969056bb48726ed0d97f0a4ce1ec7ce5d206 (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="${_pkgdir}"
}