start work on the voidlinux package builder

This commit is contained in:
core 2023-06-27 08:46:19 -04:00
parent 76af608789
commit 353a96906e
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 26 additions and 0 deletions

26
.builds/void.yml Normal file
View File

@ -0,0 +1,26 @@
image: archlinux
packages:
- xbps
sources:
- https://git.e3t.cc/~core/trifid
tasks:
- archive: |
describe=$(git describe)
if [[ $describe == tfclient* ]]; then
project=tfclient
fi
if [[ $describe == tfcli* ]]; then
project=tfcli
fi
if [[ $describe == trifid-api* ]]; then
project=trifid-api
fi
pkgver=$(git describe | sed -e 's/$project-v//g' | sed -e 's/-/_/g')
echo "project=$project" >> ~/.buildenv
echo "pkgver=$pkgver" >> ~/.buildenv
git archive -o /home/build/trifid/$project/$project-$pkgver.tar.gz --prefix=$project-$pkgver/ HEAD
echo "$project-$pkgver"