Python 3.9.1 Package
This commit is contained in:
parent
d57b1f0fd4
commit
e2c8427a7a
|
@ -0,0 +1,3 @@
|
||||||
|
*
|
||||||
|
!Makefile
|
||||||
|
!.gitignore
|
|
@ -5,10 +5,10 @@ LANG_DEPS=$(or ${DEPS})
|
||||||
LANG_BINARY_FILES=$(or ${BINARY_FILES},)
|
LANG_BINARY_FILES=$(or ${BINARY_FILES},)
|
||||||
|
|
||||||
${LANG_NAME}-${LANG_VERSION}.pkg.tar.gz: pkg-info.json package.squashfs
|
${LANG_NAME}-${LANG_VERSION}.pkg.tar.gz: pkg-info.json package.squashfs
|
||||||
tar czvf $@ $*
|
tar czvf $@ $?
|
||||||
|
|
||||||
package.squashfs: ${LANG_BINARY_FILES}
|
package.squashfs: ${LANG_BINARY_FILES}
|
||||||
mksquashfs $* $@
|
mksquashfs $? $@
|
||||||
|
|
||||||
%.json: %.jq
|
%.json: %.jq
|
||||||
jq '$(shell tr '\n' '|' < $<).' <<< "{}" > $@
|
jq '$(shell tr '\n' '|' < $<).' <<< "{}" > $@
|
||||||
|
@ -20,3 +20,7 @@ pkg-info.jq:
|
||||||
echo '.dependencies={}' >> pkg-info.jq
|
echo '.dependencies={}' >> pkg-info.jq
|
||||||
$(foreach dep, ${LANG_DEPS}, echo '.dependencies.$(word 1,$(subst =, ,${dep}))="$(word 2,$(subst =, ,${dep}))"' >> pkg-info.jq)
|
$(foreach dep, ${LANG_DEPS}, echo '.dependencies.$(word 1,$(subst =, ,${dep}))="$(word 2,$(subst =, ,${dep}))"' >> pkg-info.jq)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf $(filter-out Makefile, $(wildcard *))
|
||||||
|
|
|
@ -2,16 +2,24 @@ NAME=python
|
||||||
VERSION=3.9.1
|
VERSION=3.9.1
|
||||||
AUTHOR=Thomas Hobson <thomas@hexf.me>
|
AUTHOR=Thomas Hobson <thomas@hexf.me>
|
||||||
DEPS=
|
DEPS=
|
||||||
BINARY_FILES=
|
BINARY_FILES=out/ run
|
||||||
|
|
||||||
|
MAKE_JOBS=64
|
||||||
|
|
||||||
include ../../Makefile
|
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:
|
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
|
%/: %.tgz
|
||||||
tar xzvf $@
|
tar xzvf $<
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue