-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD-hyprpaper-git
44 lines (40 loc) · 1.04 KB
/
PKGBUILD-hyprpaper-git
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
# Maintainer: ThatOneCalculator <[email protected]>
_pkgname="hyprpaper"
pkgname="${_pkgname}-git"
pkgver=r24.gfe739ed
pkgrel=2
pkgdesc="A blazing fast wayland wallpaper utility with IPC controls. "
arch=(any)
url="https://github.com/hyprwm/hyppaper"
license=('BSD')
depends=(wayland)
makedepends=(
git
cmake
ninja
gcc
gdb
meson
wayland-protocols
xorgproto)
source=("${_pkgname}::git+https://github.com/hyprwm/hyprpaper.git")
conflicts=("${_pkgname}")
provides=(hyprpaper)
sha256sums=('SKIP')
options=(!makeflags !buildflags !strip)
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_pkgname}"
make all
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 build/hyprpaper -t "${pkgdir}/usr/bin"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}