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

View file

@ -1,4 +0,0 @@
LANGUAGE=python
VERSIONS=2.7.1 3.9.1
include ../secondary.mk

View file

@ -1,19 +0,0 @@
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPS=
COMPILED=false
include ../../common.mk
run:
echo 'python$(shell grep -oP "\d+.\d+"<<<${VERSION}) $$*' > run
${NAME}-${VERSION}/environment:
echo 'export PATH=$$PWD/bin:$$PATH' > $@
${NAME}-${VERSION}/: Python-${VERSION}/
cd $< && ./configure --prefix /
$(MAKE) -j$(or ${MAKE_JOBS},64) -C $<
DESTDIR=../$@ $(MAKE) -j$(or ${MAKE_JOBS},64) -C $< altinstall || true
Python-${VERSION}.tgz:
curl "https://www.python.org/ftp/python/${VERSION}/$@" -o $@