forked from vieter-v/vieter
fix(ci): only download PKGBUILD instead of cloning entire repo
parent
4a47c7bbdc
commit
60598f719c
|
@ -5,6 +5,7 @@ matrix:
|
||||||
|
|
||||||
platform: ${PLATFORM}
|
platform: ${PLATFORM}
|
||||||
branches: [dev]
|
branches: [dev]
|
||||||
|
skip_clone: true
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
|
@ -20,7 +21,9 @@ pipeline:
|
||||||
- chown -R builder:builder "$PWD"
|
- chown -R builder:builder "$PWD"
|
||||||
- "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
- "echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
||||||
- su builder
|
- 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
|
- makepkg -s --noconfirm --needed
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
|
|
3
PKGBUILD
3
PKGBUILD
|
@ -14,6 +14,7 @@ md5sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|
||||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +26,7 @@ build() {
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
pkgdesc="Vieter is a lightweight implementation of an Arch repository server."
|
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"
|
install -Dm755 "$pkgbase/pvieter" "$pkgdir/usr/bin/vieter"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue