pkg(python): use proper prefix

This commit is contained in:
Thomas Hobson 2021-02-27 22:07:44 +13:00
parent 0159891ed9
commit 687085a99d
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 5 additions and 2 deletions

View File

@ -14,9 +14,12 @@ ${ENV_FILE}:
echo 'export PATH=$$PWD/bin:$$PATH' > $@
${BIN_DIR}: ${BUILD_DIR}Python-${VERSION}/
cd $< && ./configure --prefix /
$(eval TMP_DIR=${PWD}/${BUILD_DIR}tmpout/)
cd $< && ./configure --prefix ${PREFIX}
$(MAKE) -C $<
DESTDIR=../${PKG_SLUG} $(MAKE) -C $< altinstall || true
DESTDIR=${TMP_DIR} $(MAKE) -C $< altinstall
mv ${TMP_DIR}${PREFIX} ${BIN_DIR} && rm -rf ${TMP_DIR}
${BUILD_DIR}Python-${VERSION}.tar.gz:
curl "https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz" -o $@