Advertisement
Guest User

Untitled

a guest
Dec 13th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 KB | None | 0 0
  1. # $Id: PKGBUILD 78191 2012-10-17 10:23:55Z allan $
  2. # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  3. # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
  4. # Contributor: Ronald van Haren <ronald.archlinux.org>
  5. # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
  6. # Contributor: Pawel Rusinek <p.rusinek@gmail.com>
  7.  
  8. pkgname=griffith-svn
  9. pkgver=1631
  10. pkgrel=1
  11. pkgdesc="Movie collection manager application"
  12. arch=('any')
  13. url="http://griffith.berlios.de"
  14. license=('GPL2')
  15. depends=('pygtk>=2.14.1' 'sqlite' 'python2-pysqlite' \
  16.          'python2-reportlab>=2.3' 'pil' 'pyxml' 'python2-sqlalchemy')
  17. optdepends=('python2-psycopg2: postgreSQL support'
  18.             'mysql-python: MySQL support'
  19.             'python2-chardet: encoding detection of imported CSV files'
  20.             'gnome-python-extras: spell checking support'
  21.             'griffith-extra-artwork: additional icons')
  22. makedepends=('subversion')
  23. provides=('griffith')
  24. conflicts=('griffith')
  25.  
  26. _svntrunk=http://svn.berlios.de/svnroot/repos/griffith/trunk
  27. _svnmod=griffith
  28.  
  29. build() {
  30.  
  31.   cd "$srcdir"
  32.   msg "Connecting to SVN server...."
  33.  
  34.   if [[ -d "$_svnmod/.svn" ]]; then
  35.     (cd "$_svnmod" && svn up -r "$pkgver")
  36.   else
  37.     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  38.   fi
  39.  
  40.   msg "SVN checkout done or server timeout"
  41.   msg "Starting build..."
  42.  
  43.   rm -rf "$srcdir/$_svnmod-build"
  44.   svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  45.   cd "$srcdir/$_svnmod-build"
  46.  
  47.  
  48.   # python2 fix
  49.   sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' griffith
  50.  
  51.   # new bash_completion directory
  52.   #sed -e 's,BASHCOMPDIR = $\(ETCDIR\)/bash_completion.d,BASHCOMPDIR = $\(PREFIX\)/share/bash-completion/completions,' -i Makefile
  53.   sed -e 's,BASHCOMPDIR = $(ETCDIR)/bash_completion.d,BASHCOMPDIR = $(PREFIX)/share/bash-completion/completions,' -i Makefile
  54. }
  55.  
  56. package() {
  57.   cd "$srcdir/$_svnmod-build"
  58.  
  59.   make DESTDIR=${pkgdir} install
  60.  
  61.   # The program creates a wrong symlink so make a new one
  62.   rm ${pkgdir}/usr/bin/griffith
  63.   ln -s /usr/share/griffith/lib/griffith ${pkgdir}/usr/bin/griffith
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement