From 60598f719c07983ba75bba92ade336664dfc40a5 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sat, 30 Apr 2022 22:22:12 +0200 Subject: [PATCH] fix(ci): only download PKGBUILD instead of cloning entire repo --- .woodpecker/.arch.yml | 5 ++++- PKGBUILD | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.woodpecker/.arch.yml b/.woodpecker/.arch.yml index e37dc1a..742095c 100644 --- a/.woodpecker/.arch.yml +++ b/.woodpecker/.arch.yml @@ -5,6 +5,7 @@ matrix: platform: ${PLATFORM} branches: [dev] +skip_clone: true pipeline: build: @@ -20,7 +21,9 @@ pipeline: - chown -R builder:builder "$PWD" - "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" - su builder - # Build the package + # Due to a bug with the V compiler, we can't just use the PKGBUILD from + # inside the repo + - curl -OL https://git.rustybever.be/Chewing_Bever/vieter/raw/branch/dev/PKGBUILD - makepkg -s --noconfirm --needed publish: diff --git a/PKGBUILD b/PKGBUILD index 3f8c480..eb86683 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -14,6 +14,7 @@ md5sums=('SKIP') pkgver() { cd "$pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } @@ -25,7 +26,7 @@ build() { package() { pkgdesc="Vieter is a lightweight implementation of an Arch repository server." - install -dm755 "$pkgdir/usr/bin" + install -dm755 "$pkgdir/usr/bin" install -Dm755 "$pkgbase/pvieter" "$pkgdir/usr/bin/vieter" }