initial commit
This commit is contained in:
22
build.sh
Executable file
22
build.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# a small script to help me compile all packages and push them to my server
|
||||
|
||||
set -e # exit asap
|
||||
|
||||
mkdir -p ./dest
|
||||
[ ! -d void-packages ] && git clone --depth 1 https://github.com/void-linux/void-packages.git
|
||||
./void-packages/xbps-src binary-bootstrap
|
||||
|
||||
for f in srcpkgs/*; do
|
||||
cp ./"$f" ./void-packages/"$f" -ru
|
||||
./void-packages/xbps-src pkg "$f"
|
||||
cp ./void-packages/hostdir/binpkgs/*.xbps ./dest/ -u
|
||||
done
|
||||
|
||||
# copy repodata after building all packages
|
||||
cp ./void-packages/hostdir/binpkgs/x86_64-repodata ./dest/
|
||||
|
||||
# tell the builder to sign their packages
|
||||
printf "\n\n\033[1;31mRun the following commands:\033[m\n"
|
||||
printf 'xbps-rindex -s ./dest --privkey \033[31m/path/to/key\033[m --signedby \033[31m"Name <Email>"\033[m\n'
|
||||
printf 'xbps-rindex -S ./dest/* --privkey \033[31m/path/to/key\033[m\n'
|
Reference in New Issue
Block a user