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

pipname=folderpreview
pkgname=$pipname
pkgver=0.4.0
pkgrel=1
pkgdesc="Generates folder thumbs using child files thumbs"
arch=(any)
url="https://gitlab.com/hxss-linux/folderpreview"
license=(MIT)
depends=(
	'python-dbus-next'
	'python-pyxdg'
	'python-yaml'
	'python-parse'
	'python-gobject'
	'python-pyvips'
	'python-systemd'
	'python-colorlog'
)
makedepends=(
	'python-pip'
	'curl'
	'jq'
)
install='INSTALL'
provides=($pipname)
replaces=('folderpreview-git')

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

package() {
	pip install $pipname \
		--root=$pkgdir \
		--no-user \
		--no-deps \
		--ignore-installed \
		--quiet

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