Want more features on Pastebin? Sign Up, it's FREE!
Guest

cdcat-2.2/PKGBUILD

By: khampf on Jan 11th, 2013  |  syntax: Bash  |  size: 1.56 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : speps <speps at aur dot archlinux dot org>
  2. # Contributor: Wes Brewer <brewerw@gmail.com>
  3.  
  4. pkgname=cdcat
  5. pkgver=2.2
  6. pkgrel=1
  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' 'p7zip')
  12. makedepends=('libtar' 'lib7zip' 'libmediainfo' 'libexif')
  13. install="$pkgname.install"
  14. source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
  15.         "$pkgname.desktop")
  16. md5sums=('7e553ff94f2c9d03ffe4de873cf22538'
  17.          '919c7e03e085a1af5a1e4d30075e30a7')
  18.  
  19. build() {
  20.   cd "$srcdir/$pkgname-$pkgver/src"
  21.  
  22.   # path fix
  23.   sed -i "s|/local||g" $pkgname.pro
  24.  
  25.   # link against libtar.a and not libtar.so (gnome-vfs)
  26.   sed -i "s|-ltar|/usr/lib/libtar.a|" $pkgname.pro
  27.  
  28.   qmake $pkgname.pro && make
  29. }
  30.  
  31. package() {
  32.   cd "$srcdir/$pkgname-$pkgver/src"
  33.  
  34.   make INSTALL_ROOT="$pkgdir" install
  35.  
  36.   # desktop file
  37.   install -Dm644 "$srcdir/$pkgname.desktop" \
  38.     "$pkgdir/usr/share/applications/$pkgname.desktop"
  39.  
  40.   # icons
  41.   for _s in 16x16 22x22 32x32 48x48 64x64; do
  42.     install -Dm644 ../${pkgname}_logo_$_s.png \
  43.       "$pkgdir/usr/share/icons/hicolor/$_s/apps/$pkgname.png"
  44.   done
  45.   install -Dm644 ../${pkgname}_logo.svg \
  46.     "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.png"
  47.  
  48.   # translations
  49.   cd lang
  50.   for _f in *.ts; do
  51.     _tdir="$pkgdir/usr/share/locale/${_f:6:2}/LC_MESSAGES"
  52.     install -d "$_tdir"
  53.     lrelease -silent -qm "$_tdir/${_f/ts/qm}" $_f
  54.   done
  55. }
  56. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data