2024-08-19 19:42:46 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2024-08-19 20:33:35 +02:00
|
|
|
echo "building archbuilder image..."
|
|
|
|
docker build -t archbuilder -f arch-builder.dockerfile .
|
2024-08-19 19:42:46 +02:00
|
|
|
|
|
|
|
echo "building source dist..."
|
|
|
|
make dist
|
|
|
|
SRC_SHA256=$(sha256sum sci-1.0.0.tar.gz | awk '{ print $1 }')
|
|
|
|
echo $SRC_SHA256
|
|
|
|
sed "s/SRC_SHA256/$SRC_SHA256/g" < PKGBUILD.in > PKGBUILD
|
|
|
|
|
|
|
|
echo "building arch package in archbuilder docker image..."
|
|
|
|
docker run --rm -it -v .:/src archbuilder sh -c '\
|
|
|
|
cd && \
|
|
|
|
cp /src/sci-1.0.0.tar.gz /src/PKGBUILD . && \
|
|
|
|
makepkg && \
|
|
|
|
cp *.zst /src
|
|
|
|
'
|