summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 064ea9d94b9ab45e228549fe9a9b2e7c4eb752fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Digvijay Mahapatra <mahapatra.digvijay@gmail.com>

pkgname=walt-bin
pkgver=0.10.0
pkgrel=1
pkgdesc="A fast terminal wallpaper picker for Hyprland with in-place previews, keyboard-first navigation, and auto-rotation"
arch=('x86_64' 'aarch64')
url="https://github.com/gitfudge0/walt"
license=('MIT')

depends=('hyprpaper' 'xdg-desktop-portal')
optdepends=(
  'xdg-desktop-portal-hyprland: file picker support on Hyprland'
  'xdg-desktop-portal-wlr: file picker support on wlroots compositors'
  'xdg-desktop-portal-kde: file picker support on KDE Plasma'
  'xdg-desktop-portal-gnome: file picker support on GNOME'
  'xdg-desktop-portal-gtk: file picker support (generic GTK fallback)'
)

makedepends=('gendesk')
install="${pkgname}.install"

provides=('walt')
conflicts=('walt' 'walt-git')
options=('!debug')

source_x86_64=(
  "walt-v${pkgver}-linux-x64.tar.gz::https://github.com/gitfudge0/walt/releases/download/v${pkgver}/walt-v${pkgver}-linux-x64.tar.gz"
)
source_aarch64=(
  "walt-v${pkgver}-linux-arm64.tar.gz::https://github.com/gitfudge0/walt/releases/download/v${pkgver}/walt-v${pkgver}-linux-arm64.tar.gz"
)

sha256sums_x86_64=('b8811946f0083e297fe45f58c67cd9337289c99f35168053b544e7b05a0b1c11')
sha256sums_aarch64=('3f88e0564dc9c344211c94838c47a6ebef933229f22b8f55a80bbcb5fe75a600')

prepare() {
  gendesk -f -n \
    --pkgname "walt" \
    --name "Walt Wallpaper Picker" \
    --pkgdesc "${pkgdesc}" \
    --exec "walt gui" \
    --categories "Graphics;Utility;" \
    --terminal=false \
    --icon "preferences-desktop-wallpaper"
}

package() {
  install -Dm755 "${srcdir}/walt" "${pkgdir}/usr/bin/walt"
  install -Dm644 "${srcdir}/walt.desktop" "${pkgdir}/usr/share/applications/walt.desktop"
}