blob: 816f0de9f1ed9713315c6f9ca94ec70a84b61ee3 (
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
|
# Maintainer: <hxss@ya.ru>
appname='folderpreview'
pkgname="${appname}-git"
pkgver=0.3.0.r1.gc46d126
pkgrel=2
pkgdesc='Generates folder preview thumb'
arch=('any')
url='https://gitlab.com/hxss-linux/folderpreview'
license=('MIT')
depends=(
'python-dbus-next'
'python-pyxdg'
'python-yaml'
'python-gobject'
'python-parse'
'python-colorlog'
'libvips'
)
makedepends=(
'python-pip'
)
install='folderpreview.install'
provides=($appname)
conflicts=($appname)
source=('git+https://gitlab.com/hxss-linux/folderpreview')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$appname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$appname"
python setup.py build
}
package() {
cd "$srcdir/$appname"
export PYTHONHASHSEED=0
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 folderpreview.thumbnailer -t "$pkgdir/usr/share/thumbnailers"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|