Build debian package for SQLCipher4

This commit is contained in:
Miguel Jacq 2025-12-21 12:58:42 +11:00
parent 2f68084bdd
commit d1aa5762bc
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
28 changed files with 285904 additions and 168 deletions

43
release.sh Executable file
View file

@ -0,0 +1,43 @@
#!/bin/bash
set -eo pipefail
# Clean caches etc
filedust -y .
mkdir -p src/sqlcipher
cd sqlcipher && ./configure && make sqlite3.c && cp sqlite3.[ch] ../src/sqlcipher/
# Publish to Pypi
poetry build
poetry publish
# Sign packages
for file in `ls -1 dist/`; do qubes-gpg-client --batch --armor --detach-sign dist/$file > dist/$file.asc; done
# Deb stuff
DISTS=(
debian:bookworm
debian:trixie
ubuntu:jammy
ubuntu:noble
)
for dist in ${DISTS[@]}; do
release=$(echo ${dist} | cut -d: -f2)
mkdir -p dist/${release}
docker build -f Dockerfile.debbuild -t bouquin-sqlcipher4-deb:${release} \
--no-cache \
--progress=plain \
--build-arg BASE_IMAGE=${dist} .
docker run --rm \
-e SUITE="${release}" \
-v "$PWD":/src \
-v "$PWD/dist/${release}":/out \
bouquin-sqlcipher4-deb:${release}
debfile=$(ls -1 dist/${release}/*.deb)
#reprepro -b /home/user/git/repo includedeb "${release}" "${debfile}"
done