blob: 5858187fd5bcccb58eca441c454ed69d6bd8b958 (
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
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Opal Aayan <YougurtMyFace@proton.me>
pkgname=snappy-switcher
pkgver=4.0.0
pkgrel=1
pkgdesc="A fast, animated Alt+Tab window switcher for Hyprland with MRU sorting and context grouping"
arch=('x86_64')
url="https://github.com/OpalAayan/snappy-switcher"
license=('GPL3')
depends=(
'wayland'
'cairo'
'pango'
'libxkbcommon'
'glib2'
'librsvg'
)
makedepends=(
'wayland-protocols'
'pkgconf'
'gcc'
'make'
'git'
)
optdepends=(
'hyprland: Required window manager'
'tela-icon-theme: Recommended icon theme'
)
provides=("$pkgname")
conflicts=("$pkgname-git")
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('51e4d521057e1302e2c7f27f8f013c5fb91d99448a783aeea98aff4305d9d8fc')
build() {
cd "$pkgname-$pkgver"
make PREFIX=/usr
}
package() {
cd "$pkgname-$pkgver"
# 1. Binaries
install -Dm755 snappy-switcher "$pkgdir/usr/bin/snappy-switcher"
install -Dm755 scripts/snappy-wrapper.sh "$pkgdir/usr/bin/snappy-wrapper"
install -Dm755 scripts/install-config.sh "$pkgdir/usr/bin/snappy-install-config"
# 2. Themes
install -d "$pkgdir/usr/share/snappy-switcher/themes"
install -Dm644 themes/*.ini "$pkgdir/usr/share/snappy-switcher/themes/"
# 3. System Config Defaults
install -Dm644 config.ini.example "$pkgdir/etc/xdg/snappy-switcher/config.ini"
# 4. Documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 docs/ARCHITECTURE.md "$pkgdir/usr/share/doc/$pkgname/ARCHITECTURE.md"
install -Dm644 docs/CONFIGURATION.md "$pkgdir/usr/share/doc/$pkgname/CONFIGURATION.md"
install -Dm644 config.ini.example "$pkgdir/usr/share/doc/$pkgname/config.ini.example"
# 5. Systemd Service (Optional)
if [ -f "snappy-switcher.service" ]; then
install -Dm644 snappy-switcher.service "$pkgdir/usr/lib/systemd/user/snappy-switcher.service"
fi
}
|