summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53cd45a68308d8f489bd23e20f32d96bb831fd0f (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
# Maintainer: éclairevoyant
# Contributor: ValHue <vhuelamo at gmail dot com>
# Contributor: Moritz Lüdecke <ritze at skweez dot net>
# Contributor: boenki <boenki at gmx dot de>

pkgname=cover-thumbnailer
pkgver=0.10.1
pkgrel=1
pkgdesc="Python-based thumbnailer that supports album covers and picture folders"
arch=(any)
url="https://github.com/flozz/$pkgname"
license=(GPL3)
depends=(python-pillow)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('3b5fd373554376a74ea88bb42ad21f0d109b456ed660fe9703468523e1eda279')
install="$pkgname.install"

package() {
	cd $pkgname-$pkgver
	install -Dm755 $pkgname.py "$pkgdir/usr/bin/$pkgname"
	install -Dm755 $pkgname-gui.py  "$pkgdir/usr/bin/$pkgname-gui"
	install -Dm644 share/* -t "$pkgdir/usr/share/$pkgname/"
	install -Dm644 man/*.1 -t "$pkgdir/usr/share/man/man1/"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
	find locale -name '*.po' -print | while read -r f; do
		_targetdir="$pkgdir/usr/share/locale/$(basename $f .po)/LC_MESSAGES/"
		install -dm755 "$_targetdir"
		msgfmt $f -o "$_targetdir/$pkgname-gui.mo"
	done
	install -Dm644 freedesktop/$pkgname-gui.desktop -t "$pkgdir/usr/share/applications/"
	install -Dm644 freedesktop/cover.thumbnailer -t "$pkgdir/usr/share/thumbnailers/"
}