blob: 8d5905234738a598a99dd56c7b6c3a98d6c23f9b (
plain)
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
|
pkgname=xz
version=5.8.3
upstream="https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.gz"
function do_configure {
mkdir -p build
cd build
conf_flags=(
--prefix=/usr
--host=${DISTRO_TC}
--disable-static
--docdir=/usr/share/doc/xz-5.8.2
)
../configure "${conf_flags[@]}"
}
function do_build {
cd build/
make -j$(nproc)
}
function do_install {
cd build/
make DESTDIR="${MASTERDIR}" install
}
|