summaryrefslogtreecommitdiff
path: root/templates/python/template
blob: 5101086f3d52d27c5ea9fa245d4dec0f182cb8bc (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
pkgname=Python
version=3.14.3
upstream="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"

function do_configure {
	mkdir -p build
	cd build

	conf_flags=(
		--prefix=/usr
		--without-static-libpython
		--enable-shared
	)

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

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

function do_install {
	cd build/
	make DESTDIR="${MASTERDIR}" install
}