-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
38 lines (31 loc) · 914 Bytes
/
PKGBUILD
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
pkgname=idlehack
pkgver=0.r4
pkgrel=4
pkgdesc="Monitor dbus and inhibit swayidle when Firefox or Chromium request it "
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/loops/idlehack"
license=('custom:ICS')
provides=('idlehack' 'idlehack-git')
conflicts=('idlehack-git')
_commit="fd73c76c2d289f9eb9ad9b0695fa9e9f151be22f"
source=("$pkgname::git+https://github.com/loops/idlehack.git#commit=$_commit")
sha256sums=('SKIP')
depends=('libx11')
pkgver() {
cd "$pkgname" || return 1
rev="$(git rev-list --count HEAD)"
echo -n "0.r${rev}"
}
build() {
cd "$srcdir/$pkgname" || return 1
make || return 1
sed -i 's/libexec/bin/' idlehack.service
}
package() {
cd "$srcdir/$pkgname" || return 1
mkdir -p "$pkgdir/usr/bin"
cp idlehack "$pkgdir/usr/bin/"
cp swayidle-inhibit "$pkgdir/usr/bin/"
mkdir -p "$pkgdir/usr/lib/systemd/user"
cp idlehack.service "$pkgdir/usr/lib/systemd/user/"
}