summaryrefslogtreecommitdiffstats
path: root/extra/cover-thumbnailer/Pkgfile
blob: 7e2eb1861233cbd5d5da44321311eeeb99caa429 (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
# Description: Affiche les pochettes des albums de musique dans nautilus et plus...
# URL: http://software.flogisoft.com/cover-thumbnailer/
# Maintainer: NuTyX core team
# Packager: FLOZz
# Depends on: python, pil, pygtk, gconf, gettext

name=cover-thumbnailer
version=0.7
release=1
source=(http://download.flogisoft.com/files/Software/Cover_thumbnailer/${name}_${version}_src.tar.gz)

build() {
	cd $name-$version
	#BUILD
	msgfmt ./locale/fr.po -o ./locale/fr.mo

	#INSTALL
	#bin
	mkdir -p $PKG/{usr/{bin,share/{cover-thumbnailer,man/man1,locale/fr/LC_MESSAGES,applications,doc/cover-thumbnailer}},etc/gconf/schemas/}
	cp ./cover-thumbnailer.py $PKG/usr/bin/cover-thumbnailer
	cp ./cover-thumbnailer-gui.py $PKG/usr/bin/cover-thumbnailer-gui
	chmod 755 $PKG/usr/bin/cover-thumbnailer*
	#share
	cp ./share/* $PKG/usr/share/cover-thumbnailer/
	#man
	cp ./man/* $PKG/usr/share/man/man1/applications/
	#.desktop
	cp ./freedesktop/* $PKG/usr/share/
	#locale
	cp ./locale/fr.mo $PKG/usr/share/locale/fr/LC_MESSAGES/cover-thumbnailer-gui.mo
	#doc
	cp ./README $PKG/usr/share/doc/cover-thumbnailer/
	cp ./COPYING $PKG/usr/share/doc/cover-thumbnailer/
	#schemas
	mv $PKG/usr/share/cover-thumbnailer/cover-thumbnailer.schema $PKG/etc/gconf/schemas/cover-thumbnailer.schemas
}