From 55f481e4651e097392d1e3697184c9b84edc2d31 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 28 Feb 2021 01:16:11 +1300 Subject: [PATCH] repo: build all --- repo/make.sh | 4 ++-- repo/mkindex.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/repo/make.sh b/repo/make.sh index e89dc1e..bad392e 100755 --- a/repo/make.sh +++ b/repo/make.sh @@ -3,8 +3,8 @@ cd /repo # Make packages -pushd ../packages/python -make build VERSIONS=3.9.1 +pushd ../packages/ +make -j16 popd diff --git a/repo/mkindex.sh b/repo/mkindex.sh index 4f2ac42..a38caf6 100755 --- a/repo/mkindex.sh +++ b/repo/mkindex.sh @@ -3,7 +3,7 @@ echo "baseurl: file://$PWD" >> index.yaml echo "keys: []" >> index.yaml echo "packages: []" >> index.yaml -yq -yi '.keys[0] = "0x107DA02C7AE97B084746564B9F1FD9D87950DB6F"' index.yaml +#yq -yi '.keys[0] = "0x107DA02C7AE97B084746564B9F1FD9D87950DB6F"' index.yaml i=-1 @@ -15,12 +15,12 @@ do PKGFILENAME=$(echo $PKGFILE | sed 's/\.pkg\.tar\.gz//g') PKGNAME=$(echo $PKGFILENAME | grep -oP '^\K.+(?=-)') PKGVERSION=$(echo $PKGFILENAME | grep -oP '^.+-\K.+') - BUILDFILE=https://github.com/engineer-man/piston/tree/v3/packages/python/ + BUILDFILE=https://github.com/engineer-man/piston/tree/v3/packages/ SIZE=$(tar tzvf $PKGFILE | sed 's/ \+/ /g' | cut -f3 -d' ' | sed '2,$s/^/+ /' | paste -sd' ' | bc) tar xzf $PKGFILE pkg-info.json - yq -yi ".packages[$i] = {} | .packages[$i].signature = \"$(cat ${pkg}.asc)\" | .packages[$i].buildfile = \"$BUILDFILE\" | .packages[$i].size = $SIZE | .packages[$i].download = \"$PKGFILE\" | .packages[$i].dependencies = $(jq .dependencies -r pkg-info.json) | .packages[$i].author = $(jq .author pkg-info.json) | .packages[$i].language =\"$PKGNAME\" | .packages[$i].version = \"$PKGVERSION\" | .packages[$i].checksums = {} | .packages[$i].checksums.sha256 = \"$(sha256sum $PKGFILE | awk '{print $1}')\"" index.yaml + yq -yi ".packages[$i] = {} | .packages[$i].signature = \"\" | .packages[$i].buildfile = \"$BUILDFILE\" | .packages[$i].size = $SIZE | .packages[$i].download = \"$PKGFILE\" | .packages[$i].dependencies = $(jq .dependencies -r pkg-info.json) | .packages[$i].author = $(jq .author pkg-info.json) | .packages[$i].language =\"$PKGNAME\" | .packages[$i].version = \"$PKGVERSION\" | .packages[$i].checksums = {} | .packages[$i].checksums.sha256 = \"$(sha256sum $PKGFILE | awk '{print $1}')\"" index.yaml rm pkg-info.json done \ No newline at end of file