summaryrefslogtreecommitdiff
path: root/Ports/bzip2/package.sh
blob: 08bc24c02b1cb8db4ef263d7d2c1fae5aed2f496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env -S bash ../.port_include.sh
port=bzip2
version=1.0.8
files="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz bzip2-${version}.tar.gz ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269"
auth_type=sha256
makeopts=bzip2
installopts="PREFIX=${SERENITY_INSTALL_ROOT}/usr/local"

build() {
    run make CC="${CC}" $makeopts bzip2
}

install() {
    run make DESTDIR=${SERENITY_INSTALL_ROOT} CC="${CC}" $installopts install
}