Created
January 7, 2025 20:28
-
-
Save reox/efa3686c3ac9b95d1fac8b3e768bef9a to your computer and use it in GitHub Desktop.
Build dovecot-fts-xapian nightly debian package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recommended to run in a clean environment | |
export EMAIL="builder@localhost" | |
apt update | |
apt dist-upgrade -y | |
apt install -y git git-buildpackage --no-install-recommends | |
git config --global user.name "Bob the Builder" | |
git config --global user.email "$EMAIL" | |
git clone https://github.com/grosjo/fts-xapian.git upstream | |
cd upstream | |
VERSION=$(git describe --tags master | tr '-' '~') | |
git archive --format=tar.gz -o ../fts-xapian_$VERSION.tar.gz master | |
cd .. | |
git clone https://salsa.debian.org/debian/dovecot-fts-xapian.git | |
cd dovecot-fts-xapian | |
apt build-dep -y . | |
git branch upstream | |
# TODO: I guess that could be optimized and pulled directly from git by using the upstream repo, but I could not make it work with gbp... | |
gbp import-orig ../fts-xapian_$VERSION.tar.gz --upstream-version=$VERSION --no-rollback --upstream-branch upstream --no-pristine-tar | |
gbp dch --release --spawn-editor never --commit --no-full | |
dpkg-buildpackage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment