summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56233c37ec167360db4371c8d24531eae1f30115 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
_pkgname=qwikaccess
pkgname=${_pkgname}-git
pkgver=0.0.1.r13.c48c158
pkgrel=1
pkgdesc="A point and click Qt GUI for scripts we use frequently."
arch=('any')
url="https://github.com/librewish/qwikaccess"
license=('GPL3')
depends=('qt5-base' 'polkit')
optdepends=(
	'ffmpeg: for screenshot & audio,screen,screencam recording'
	'v4l-utils: for camera'
	'libpulse: for audio/mic mute/unmute vol+/-'
	'brightnessctl: for brightness up and down'
	'xorg-xrdb: for autohidpi'
	'xorg-xrandr: for screen rotation'
	'xorg-xinput: for autorotation'
	'inotify-tools: for autorotation'
	'iio-sensor-proxy: for autorotation'
	'redshift: for night mode'
	'bluez-tools: for bluetooth'
	'networkmanager: for wifi and hotspot'
	'connman: for wifi and hotspot'
	'util-linux: for airplane mode'
	'xdg-utils: for lock screen (xdg-screensaver lock)'
	'systemd: for leave commands and gps services'
	'libnotify: for notification'
	'wmctrl: for screencam ffplay to be on above all windows'
	'playerctl: media player controls'
	'grep: used in scripts'
)
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/librewish/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${_pkgname}"
	qmake-qt5 ${_pkgname}.pro
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make INSTALL_ROOT=${pkgdir} install
}