diff options
author | Andrea Feletto | 2022-08-18 12:10:09 +0200 |
---|---|---|
committer | Andrea Feletto | 2022-08-18 12:10:09 +0200 |
commit | bc9cb89283bfbae69af413d7635b668c333ebb8e (patch) | |
tree | 1f05a470d7c2e39b9f12c2ba56eaedc89a994e95 | |
parent | 3c96c07a1e1c603bded996a9d28c43eb808f6c26 (diff) | |
download | aur-bc9cb89283bfbae69af413d7635b668c333ebb8e.tar.gz |
use version from build.zig and use upstream desktop entry
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | river.desktop | 5 |
3 files changed, 10 insertions, 16 deletions
@@ -1,6 +1,6 @@ pkgbase = river-git pkgdesc = A dynamic tiling wayland compositor. - pkgver = 0.1.0.r107.gbc610c8 + pkgver = 0.2.0_dev.r115.g844ffce pkgrel = 1 url = https://github.com/riverwm/river arch = x86_64 @@ -29,12 +29,10 @@ pkgbase = river-git source = git+https://github.com/ifreund/zig-wayland.git source = git+https://github.com/swaywm/zig-wlroots.git source = git+https://github.com/ifreund/zig-xkbcommon.git - source = river.desktop sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP sha256sums = SKIP - sha256sums = 6ccc55e95666904cbdeeeeed841a16f728cbae2609646130a4c53785e588e4b0 pkgname = river-git @@ -4,7 +4,7 @@ pkgname=river-git _pkgname=${pkgname%-*} -pkgver=0.1.0.r107.gbc610c8 +pkgver=0.2.0_dev.r115.g844ffce pkgrel=1 pkgdesc='A dynamic tiling wayland compositor.' arch=('x86_64') @@ -27,7 +27,6 @@ source=( 'git+https://github.com/ifreund/zig-wayland.git' 'git+https://github.com/swaywm/zig-wlroots.git' 'git+https://github.com/ifreund/zig-xkbcommon.git' - 'river.desktop' ) sha256sums=( 'SKIP' @@ -35,7 +34,6 @@ sha256sums=( 'SKIP' 'SKIP' 'SKIP' - '6ccc55e95666904cbdeeeeed841a16f728cbae2609646130a4c53785e588e4b0' ) prepare() { @@ -48,18 +46,21 @@ prepare() { } pkgver() { + local version commit_count commit_hash + cd "$srcdir/$_pkgname" - git describe --long | sed 's/^v//;s/-/.r/;s/-/./' + version=$(sed -n 's/^const version = "\(.*\)";/\1/p' build.zig | tr '-' '_') + commit_count=$(git describe --long | cut -d- -f2) + commit_hash=$(git describe --long | cut -d- -f3) + printf '%s.r%s.%s\n' "$version" "$commit_count" "${commit_hash}" } package() { cd "$srcdir/$_pkgname" - DESTDIR="$pkgdir" zig build --prefix '/usr' -Dxwayland + DESTDIR="$pkgdir" zig build --prefix '/usr' -Drelease-safe -Dxwayland install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname" install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname" + install -Dm644 contrib/river.desktop -t "$pkgdir/usr/share/wayland-sessions" install -d "$pkgdir/usr/share/$_pkgname" cp -fR example "$pkgdir/usr/share/$_pkgname" - - cd "$srcdir" - install -Dm644 river.desktop -t "$pkgdir/usr/share/wayland-sessions" } diff --git a/river.desktop b/river.desktop deleted file mode 100644 index 0e006ba48701..000000000000 --- a/river.desktop +++ /dev/null @@ -1,5 +0,0 @@ -[Desktop Entry] -Name=river -Comment=A dynamic tiling Wayland compositor -Exec=river -Type=Application
\ No newline at end of file |