summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76940f31db3217acf54c31681ad142d254eaba04 (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
53
54
55
56
57
58
59
60
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Fenner Macrae <fmacrae.dev at gmail dot com>

pkgname=flashfocus
pkgver=2.2.4
pkgrel=1
pkgdesc="Simple Xorg window focus animations for tiling window managers"
url="https://www.github.com/fennerm/flashfocus"
license=('MIT')
arch=('any')
depends=(
	'python-cffi>=1.11'
	'python-cffi<2.0.0'
	'python-xcffib>=0.6.0'
	'python-xcffib<1.0.0'
	'python-click>=6.7'
	'python-click<9.0.0'
	'python-xpybutil>=0.0.6'
	'python-xpybutil<1.0.0'
	'python-marshmallow>=2.15.0'
	'python-marshmallow<4.0.0'
	'python-yaml>=5.1'
	'python-yaml<6.0.0'
	'python-i3ipc>=2.1.1'
	'python-i3ipc<3.0.0')
makedepends=('python-setuptools' 'python-pytest-runner')
optdepends=(
	'i3-wm: compatible window manager'
	'sway: compatible window manager'
	'bspwm: compatible window manager'
	'awesome: compatible window manager'
	'xmonad: compatible window manager'
	'picom: recommended compositor if using X-based window managers')
# checkdepends=(
# 	'python-pytest'
# 	'python-pytest-cov'
# 	'python-pytest-factoryboy'
# 	'python-pytest-runner'
# 	'python-pytest-lazy-fixture')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('346efca50020f7a9b96e1658c8355f25d8b5e5bfb496a2a7048940813f5c8c16')

build() {
	cd "$pkgname-$pkgver"
	python setup.py build
}

# check() {
# 	cd "$pkgname-$pkgver"
# 	python setup.py pytest
# }

package() {
	cd "$pkgname-$pkgver"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
	install -Dm644 flashfocus.service -t "$pkgdir/usr/lib/systemd/user/"
}