blob: d0911f8d0308ea727160bf513457cef814dc4f7e (
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
|
# Maintainer: Sameer Puri <aur@purisa.me>
pkgname=wl-video-idle-inhibit
pkgver=0.1.5
pkgrel=1
pkgdesc='Wayland Idle Inhibitor using open video devices as a signal'
url="https://github.com/sameer/$pkgname"
source=("$pkgname-$pkgver.tar.gz::https://github.com/sameer/wl-video-idle-inhibit/archive/refs/tags/$pkgver.tar.gz")
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('MIT' 'APACHE')
makedepends=('git' 'cargo' 'wayland' 'wayland-protocols')
depends=('wayland')
optdepends=('swayidle: Idle management daemon')
replaces=('sway-video-idle-inhibit')
conflicts=('sway-video-idle-inhibit')
b2sums=('SKIP')
build () {
cd "$srcdir/$pkgname-$pkgver"
if [[ $CARCH != x86_64 ]]; then
export CARGO_PROFILE_RELEASE_LTO=off
fi
cargo build --locked --release --target-dir target
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 target/release/$pkgname "${pkgdir}/usr/bin/$pkgname"
ln -s ./$pkgname "${pkgdir}/usr/bin/sway-video-idle-inhibit"
}
|