summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c6abf657520a4a1a631428ed435b3ccb3953c5e (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
pkgname="yin-git"
pkgver=0.1.r0.gc13b5e8
pkgrel=1
pkgdesc="Lightweight, Hardware accelerated Wayland wallpaper daemon"
arch=("x86_64")
url="https://github.com/saverinonrails/yin"
license=("GPL-3.0-or-later") # Change if necessary
depends=("ffmpeg" "wayland" "stb")
makedepends=("git" "meson" "ninja" "wayland-protocols")
options=('!debug')
source=("git+https://github.com/saverinonrails/yin.git")
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/yin"

    git describe --long --tags --abbrev=7 2>/dev/null \
        | sed 's/^v//; s/\(.*\)-\([0-9]*\)-g/\1.r\2.g/' \
        || printf "r%s.g%s\n" \
            "$(git rev-list --count HEAD)" \
            "$(git rev-parse --short=7 HEAD)"
}

build() {
    cd "$srcdir/yin"

    meson setup release --buildtype=release --wipe
    meson compile -C release
}

package() {
    cd "$srcdir/yin"
    install -Dm755 release/yin "$pkgdir/usr/bin/yin"
    install -Dm755 release/yinctl "$pkgdir/usr/bin/yinctl"
}