summaryrefslogtreecommitdiff
path: root/templates/util-linux/template
blob: 8e49ce11fe751a418ad149d48b1a14e0f5330d66 (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
28
29
30
31
32
33
34
35
36
pkgname=util-linux
version=2.42.1
build_no=1
upstream="https://github.com/util-linux/util-linux/archive/refs/tags/v${version}.tar.gz"

makedepends=(automake autoconf m4)

function do_configure {
	./autogen.sh	

	mkdir -p build/
	cd build/
	
	conf_flags=(
		--prefix=/usr		
		--host=${DISTRO_TC}
		--disable-werror
		--disable-nls
		--disable-rpath
		M4=/usr/bin/m4
	)
	
	../configure "${conf_flags[@]}"
}

function do_build {
	export M4=/usr/bin/m4
	cd build/
	make -j$(nproc)
}

function do_install {
	export M4=/usr/bin/m4
	cd build/
	make DESTDIR=${DESTDIR} install
}