Skip to content

Commit 1f677b4

Browse files
committed
test
1 parent 39f387c commit 1f677b4

3 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/vuru-release.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,32 @@ jobs:
7878
VERSION=${GITHUB_REF_NAME#v}
7979
echo "Building Vuru version $VERSION"
8080
81-
cd void-packages
81+
# Define absolute paths
82+
VUP_DIR="$GITHUB_WORKSPACE/vup"
83+
VOID_DIR="$GITHUB_WORKSPACE/void-packages"
84+
DIST_TMP="$GITHUB_WORKSPACE/dist-tmp"
85+
86+
cd "$VOID_DIR"
8287
# Copy template
8388
mkdir -p srcpkgs/vuru
84-
cp ../vup/vup/srcpkgs/core/vuru/template srcpkgs/vuru/
89+
cp "$VUP_DIR/vup/srcpkgs/core/vuru/template" srcpkgs/vuru/
90+
91+
# HACK: Create local distfile so xbps-src finds it
92+
mkdir -p "hostdir/sources/vuru-$VERSION"
8593
86-
# HACK: The template expects a tarball, but we have source here.
87-
# Create a local distfile so xbps-src finds it.
94+
# Create source tarball
95+
mkdir -p "$DIST_TMP/vup-v$VERSION"
96+
cp -r "$VUP_DIR/vuru" "$DIST_TMP/vup-v$VERSION/"
8897
89-
mkdir -p hostdir/sources/vuru-$VERSION
90-
cd ../vup
91-
# Create expected dir structure vup-vVERSION/vuru
92-
mkdir -p /tmp/dist/vup-v$VERSION
93-
cp -r vuru /tmp/dist/vup-v$VERSION/
94-
cd /tmp/dist
95-
tar -czf ../source.tar.gz vup-v$VERSION
98+
cd "$DIST_TMP"
99+
tar -czf "source.tar.gz" "vup-v$VERSION"
96100
97101
# Move to void-packages distfiles
98-
mv ../source.tar.gz ../../void-packages/hostdir/sources/vuru-$VERSION/v$VERSION.tar.gz
102+
mv "source.tar.gz" "$VOID_DIR/hostdir/sources/vuru-$VERSION/v$VERSION.tar.gz"
99103
100-
cd ../../void-packages
104+
cd "$VOID_DIR"
101105
# Update checksum
102-
SHA=$(sha256sum hostdir/sources/vuru-$VERSION/v$VERSION.tar.gz | cut -d' ' -f1)
106+
SHA=$(sha256sum "hostdir/sources/vuru-$VERSION/v$VERSION.tar.gz" | cut -d' ' -f1)
103107
sed -i "s/checksum=\".*\"/checksum=\"$SHA\"/" srcpkgs/vuru/template
104108
105109
# Build

vup/srcpkgs/core/vuru/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Template file for 'vuru'
22
pkgname=vuru
3-
version=0.2.1
3+
version=0.2.2
44
revision=1
55
build_style=cargo
66
hostmakedepends="cargo pkg-config"

vuru/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vuru"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2024"
55

66
[dependencies]

0 commit comments

Comments
 (0)