updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / cdcat / PKGBUILD
blob0aaa50446adce693458a3658ba92e443b93c3f76
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Wes Brewer <brewerw@gmail.com>
4 pkgname=cdcat
5 pkgver=1.5
6 pkgrel=2
7 pkgdesc="CD/DVD/Media catalog software (QT based)"
8 arch=('i686' 'x86_64')
9 url="http://cdcat.sourceforge.net/"
10 license=('GPL')
11 depends=('qt' 'bzip2')
12 makedepends=('libtar' 'lib7zip' 'libmediainfo')
13 install="$pkgname.install"
14 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
15         "$pkgname.desktop")
16 md5sums=('0ccd6b61d0c28bbfa5f3898e9bd17960'
17          '9572c09ee3a4e695487bc070fce6a19f')
19 build() {
20   cd "$srcdir/$pkgname-$pkgver/src"
22   # Path fix
23   sed -i "s|/local||g" $pkgname.pro
25   qmake $pkgname.pro && make
28 package() {
29   cd "$srcdir/$pkgname-$pkgver/src"
31   make INSTALL_ROOT="$pkgdir" install
33   # Desktop file
34   install -Dm644 "$srcdir/$pkgname.desktop" \
35     "$pkgdir/usr/share/applications/$pkgname.desktop"
37   # translations
38   cd lang
39   for _f in *.ts; do
40     _tdir="$pkgdir/usr/share/locale/${_f:6:2}/LC_MESSAGES"
41     install -d "$_tdir"
42     lrelease -silent -qm "$_tdir/${_f/ts/qm}" $_f
43   done
45 # vim:set ts=2 sw=2 et: