summaryrefslogtreecommitdiff
path: root/templates/gdb/template
blob: 7026c3529891c6a8a1c59ac9551a7ef93944c25f (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
pkgname=gdb
version=17.2 
build_no=1
upstream="https://ftp.gnu.org/gnu/gdb/gdb-${version}.tar.gz"

function do_configure {
	mkdir -p build/
	cd build/

	conf_flags=(
		--prefix=/usr
		--target=${DISTRO_TC}
		--host=${DISTRO_TC}
		--enable-host-pie
		--enable-host-shared
	)

	../configure "${conf_flags[@]}"
}

function do_build {
	cd build/
	make -j$(nproc)
}

function do_install {
	echo "Test"
#	cd build/
#	make DESTDIR=${DESTDIR} install
}