Python 3.9.1 Package

This commit is contained in:
Thomas Hobson 2021-02-19 16:48:46 +13:00
parent d57b1f0fd4
commit e2c8427a7a
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 22 additions and 7 deletions

View file

@ -2,16 +2,24 @@ NAME=python
VERSION=3.9.1
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPS=
BINARY_FILES=
BINARY_FILES=out/ run
MAKE_JOBS=64
include ../../Makefile
bin:
run:
echo "bin/python3.9 $*" > run
out/: Python-${VERSION}/
cd $< && ./configure --prefix /
make -j${MAKE_JOBS} -C $<
DESTDIR=../out make -j${MAKE_JOBS} -C $< altinstall
Python-${VERSION}.tgz:
curl "https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz" -O $@
curl "https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz" -o $@
%: %.tgz
tar xzvf $@
%/: %.tgz
tar xzvf $<