blob: 162ea0bda3073db37fd3ebf6163c964a94dc40ea (
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
|
# Maintainer: Viktor Varenik <yavarenikya@gmail.com>
pkgname=idlerd-git
pkgver=1.0.0
pkgrel=1
pkgdesc='Configless idle management daemon for Wayland with gamepad support'
arch=('x86_64')
url="https://github.com/kotleni/${pkgname%-git}"
license=('GPL-2.0-only')
depends=('wayland')
makedepends=('cmake' 'wayland-protocols' 'wayland-utils' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --tags --long | sed 's/^v//;s/-/.r/;s/-/./'
}
build() {
cmake -B build -S "${pkgname%-git}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|