summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1bcb01bb8e74a110817dd99267078c8967a3f39e (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
# Maintainer: Sergey Khobta <hxss@ya.ru>

pipname=keeprofi
pkgname=$pipname
pkgver=2.0.2
pkgrel=1
pkgdesc="Fast rofi drun menu for keepass database"
arch=(any)
url="https://gitlab.com/hxss-linux/keeprofi"
license=(MIT)
depends=(
	'python-pyxdg'
	'python-yaml'
	'python-xerox'
	'python-pynput'
	'python-pykeepass'
	'python-keyring'
	'python-hxss-responsibility'
	'rofi'
	'xclip'
	'desktop-notify'
)
makedepends=(
	'python-pip'
	'curl'
	'jq'
	'findutils'
)
provides=($pipname)

pkgver() {
	curl -s https://pypi.org/pypi/$pipname/json | jq -r .info.version
}

package() {
	PIP_CONFIG_FILE=/dev/null pip install $pipname \
		--root=$pkgdir \
		--isolated \
		--no-user \
		--no-deps \
		--ignore-installed \
		--no-warn-script-location \
		--quiet

	python -O -m compileall "$pkgdir"

	install -Dm644 $(find $pkgdir -name LICENSE*) \
		-t "$pkgdir/usr/share/licenses/$pkgname"
}