-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
46 lines (44 loc) · 1.03 KB
/
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
39
40
41
42
43
44
45
46
pkgname='flux'
pkgver='1.20.17'
pkgrel='1'
pkgdesc='Advanced daemon for X11 desktops and window managers, designed to automatically limit FPS/CPU usage of unfocused windows and run commands on focus and unfocus events. Written in Bash and C++.'
arch=('any')
url='https://github.com/itz-me-zappex/flux'
license=('GPL-3.0-only')
makedepends=(
'libxres'
'libx11'
'libxext'
'xorgproto'
'gcc'
'make'
)
depends=(
'bash'
'util-linux'
'cpulimit'
'coreutils'
'libxres'
'libx11'
'libxext'
'xorgproto'
)
optdepends=(
'mangohud: support for FPS limits'
'lib32-mangohud: support for FPS limits (32-bit)'
'libnotify: support for notifications'
'xdotool: minimize borderless windows on unfocus'
)
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
install='create-group.install'
build(){
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
PREFIX="${pkgdir}/usr" make install
mkdir -p "${pkgdir}/etc/security/limits.d"
install -Dm644 '10-flux.conf' "${pkgdir}/etc/security/limits.d/"
}