blob: 8d2e16f06b0db95aed98194180a7240381e7091e (
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
|
# Maintainer: Your Name <your.email@example.com>
pkgname=staticwall-git
pkgver=0.2.0.r0.gcf99dac
pkgrel=1
pkgdesc="Dynamic Wayland wallpaper manager with live shader support"
arch=('x86_64' 'aarch64')
url="https://github.com/1ay1/staticwall"
license=('MIT')
depends=(
'wayland'
'mesa'
'libpng'
'libjpeg-turbo'
)
makedepends=(
'git'
'make'
'gcc'
'wayland-protocols'
'pkgconf'
)
provides=('staticwall')
conflicts=('staticwall')
source=("git+https://github.com/1ay1/staticwall.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/staticwall"
# Get version from git tags, with format: TAG.rREVISIONS.gHASH
# Example: 0.2.0.r12.gabc1234
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || \
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/staticwall"
make
}
package() {
cd "$srcdir/staticwall"
# Install binary
install -Dm755 build/bin/staticwall "$pkgdir/usr/bin/staticwall"
# Install example config
install -Dm644 config/staticwall.vibe "$pkgdir/usr/share/staticwall/config.vibe.example"
# Install default wallpaper
install -Dm644 assets/default.png "$pkgdir/usr/share/staticwall/default.png"
# Install example shaders
install -dm755 "$pkgdir/usr/share/staticwall/shaders"
install -m644 examples/shaders/*.glsl "$pkgdir/usr/share/staticwall/shaders/"
# Install license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|