pkg: massive overhaul

This commit is contained in:
Thomas Hobson 2021-02-27 18:28:08 +13:00
parent 764641b5a6
commit 21c6057130
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
9 changed files with 168 additions and 112 deletions

22
packages/python.mk Normal file
View file

@ -0,0 +1,22 @@
NAME=python
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPENDENCIES=
COMPILED=false
VERSIONS=2.7.1 3.5.1 3.9.1
include common.mk
${RUN_FILE}:
echo 'python${VERSION_MINOR} $$*' > $@
${ENV_FILE}:
echo 'export PATH=$$PWD/bin:$$PATH' > $@
${BIN_DIR}: ${BUILD_DIR}Python-${VERSION}/
cd $< && ./configure --prefix /
$(MAKE) -j64 -C $<
DESTDIR=../${PKG_SLUG} $(MAKE) -j64 -C $< altinstall || true
${BUILD_DIR}Python-${VERSION}.tgz:
curl "https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz" -o $@