summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7eb963e138fb1fbf4f13732d7d5bed88e32d437 (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
# Maintainer: Michael Kogan <michael.kogan at gmx dot net>

pkgname='wm-switcher-git'
pkgdesc='Simple GUI to switch window managers in Linux with minimal dependencies, git version'
pkgver=r12.48cb09e
pkgrel=1

depends=('python-pyqt5')
optdepends=('metacity: Switch to the Metacity window manager'
		'xfwm4: Switch to the Xfwm window manager'
		'compiz: Switch to the Compiz window manager'
		'openbox: Switch to the Openbox window manager'
		'compton: Use the Compton compositor')

provides=('wm-switcher')
conflicts=('wm-switcher')

source=("git+https://github.com/xircon/wm-switcher.git")
md5sums=('SKIP')

arch=('i686' 'x86_64')
url='https://github.com/xircon/wm-switcher'
license=('GPL3')

package() {
	install -d -m755 "$pkgdir/usr/bin"
	install -d -m755 "$pkgdir/usr/share/applications"
	install -d -m755 "$pkgdir/usr/share/doc/wm-switcher"
	install -m 755 "$srcdir/wm-switcher/wm-switcher" "$pkgdir/usr/bin/wm-switcher"
	cp -dr "$srcdir/wm-switcher/wm-switcher.desktop" "$pkgdir/usr/share/applications/"
	cp -dr "$srcdir/wm-switcher/LICENSE" "$pkgdir/usr/share/doc/wm-switcher/"
	cp -dr "$srcdir/wm-switcher/README.md" "$pkgdir/usr/share/doc/wm-switcher/"
}

pkgver() {
	cd "wm-switcher"
	printf -- "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}