Krolyxon
Commit 9f6e071

Branches

Tags

Refs →

remage9f6e071

Replace remage-git PKGBUILD with remage-bin from GitHub releases

Author
krolyxon
Date
2026-11-05 11:03 +0530
Parent
6794220
Commit
9f6e07109eeaa3c962745b3c899690148d0b1745

+20 −45

3 files changed

  1. M README.md +2 −1
  2. A contrib/.gitignore +5 −0
  3. M contrib/PKGBUILD +13 −44
M README.md View
@@ -78,7 +78,8 @@ The tarball also holds zsh/bash/fish completions, the desktop file and the examp
7878
7979 ### Arch Linux
8080
81−A `remage-git` PKGBUILD lives in [`contrib/PKGBUILD`](contrib/PKGBUILD):
81+A `remage-bin` PKGBUILD lives in [`contrib/PKGBUILD`](contrib/PKGBUILD). It packages the
82+latest release binary from GitHub:
8283
8384 ```bash
8485 git clone https://github.com/krolyxon/remage
A contrib/.gitignore View
@@ -0,0 +1,5 @@
1+# makepkg output
2+/src/
3+/pkg/
4+*.tar.gz
5+*.pkg.tar.zst
M contrib/PKGBUILD View
@@ -1,14 +1,13 @@
11 # Maintainer: krolyxon <me@krolyxon.com>
2−pkgname=remage-git
2+pkgname=remage-bin
33 _pkgname=remage
4−pkgver=0.1.0.r0.g0000000
4+pkgver=0.1.0
55 pkgrel=1
66 pkgdesc='Keyboard-centric, GPU-rendered image viewer with vim keys and wallpaper theming'
7−arch=('x86_64' 'aarch64')
7+arch=('x86_64')
88 url='https://github.com/krolyxon/remage'
99 license=('AGPL-3.0-only' 'OFL-1.1')
1010 depends=('gcc-libs' 'glibc' 'dav1d' 'libheif' 'libxkbcommon' 'wayland' 'vulkan-icd-loader')
11−makedepends=('cargo' 'git' 'pkgconf')
1211 optdepends=(
1312 'libx11: X11 support'
1413 'libxcursor: X11 cursors'
@@ -22,51 +21,21 @@ optdepends=(
2221 )
2322 provides=("$_pkgname")
2423 conflicts=("$_pkgname")
25−options=('!lto')
26−source=("git+$url.git")
27−sha256sums=('SKIP')
28−
29−pkgver() {
30− cd "$_pkgname"
31− printf '%s.r%s.g%s' \
32− "$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2)" \
33− "$(git rev-list --count HEAD)" \
34− "$(git rev-parse --short HEAD)"
35−}
36−
37−prepare() {
38− cd "$_pkgname"
39− export RUSTUP_TOOLCHAIN=stable
40− cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
41−}
42−
43−build() {
44− cd "$_pkgname"
45− export RUSTUP_TOOLCHAIN=stable
46− export CARGO_TARGET_DIR=target
47− cargo build --frozen --release
48− target/release/remage man > remage.1
49− target/release/remage completions zsh > _remage
50− target/release/remage completions bash > remage.bash
51− target/release/remage completions fish > remage.fish
52−}
53−
54−check() {
55− cd "$_pkgname"
56− export RUSTUP_TOOLCHAIN=stable
57− cargo test --frozen --release
58−}
24+options=('!strip' '!debug')
25+_dir="$_pkgname-v$pkgver-x86_64-linux"
26+source=("$url/releases/download/v$pkgver/$_dir.tar.gz")
27+sha256sums=('d9688a8244eacc2aa4daf6b18cea3244fd3aedcf29d142f2efc3c45fa13912dd')
5928
6029 package() {
61− cd "$_pkgname"
62− install -Dm755 target/release/remage -t "$pkgdir/usr/bin/"
30+ cd "$_dir"
31+ install -Dm755 remage -t "$pkgdir/usr/bin/"
6332 install -Dm644 remage.1 -t "$pkgdir/usr/share/man/man1/"
64− install -Dm644 _remage -t "$pkgdir/usr/share/zsh/site-functions/"
65− install -Dm644 remage.bash "$pkgdir/usr/share/bash-completion/completions/remage"
66− install -Dm644 remage.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/"
33+ install -Dm644 completions/_remage -t "$pkgdir/usr/share/zsh/site-functions/"
34+ install -Dm644 completions/remage.bash "$pkgdir/usr/share/bash-completion/completions/remage"
35+ install -Dm644 completions/remage.fish -t "$pkgdir/usr/share/fish/vendor_completions.d/"
6736 install -Dm644 contrib/remage.desktop -t "$pkgdir/usr/share/applications/"
6837 install -Dm644 README.md contrib/config.example.toml -t "$pkgdir/usr/share/doc/$_pkgname/"
6938 cp -r contrib/matugen contrib/pywal "$pkgdir/usr/share/doc/$_pkgname/"
7039 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
71− install -Dm644 assets/fonts/OFL.txt "$pkgdir/usr/share/licenses/$pkgname/OFL-fonts.txt"
40+ install -Dm644 OFL-fonts.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
7241 }