updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / auralquiz / PKGBUILD
blobefd4983dd77161cba6e37520e8ffd3c8570a4bc3
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=auralquiz
4 pkgver=0.7
5 pkgrel=2
6 pkgdesc="a simple music quiz game, using your own music files."
7 arch=(i686 x86_64)
8 url="http://jancoding.wordpress.com/auralquiz/"
9 license=('GPL')
10 depends=('phonon' 'taglib')
11 install="$pkgname.install"
12 source=("http://qt-apps.org/CONTENT/content-files/139127-$pkgname-v$pkgver-src.tar.gz")
13 md5sums=('8a059043e28fd423a0db31ad366c765f')
15 build() {
16   cd "$srcdir"
18   # locale path fix
19   sed -i 's|:/translations|/usr/share/locale|' src/main.cpp
21   [ -d bld ] || mkdir bld && cd bld
22   qmake ..
23   make
26 package() {
27   cd "$srcdir"
29   # bin
30   install -Dm755 bld/$pkgname \
31     "$pkgdir/usr/bin/$pkgname"
33   # desktop file
34   install -Dm644 $pkgname.desktop \
35     "$pkgdir/usr/share/applications/$pkgname.desktop"
37   # icon
38   install -Dm644 icon/$pkgname-icon.png \
39     "$pkgdir/usr/share/pixmaps/$pkgname.png"
41   # locales
42   install -d "$pkgdir/usr/share/locale"
43   install -Dm644 translations/*.qm \
44     "$pkgdir/usr/share/locale"
47 # vim:set ts=2 sw=2 et: