# Maintainer: ValHue # https://github.com/ValHue/AUR-PKGBUILDs # # Contributor: Jaroslav Lichtblau # Contributor: Daniel J Griffiths # Contributor: Ronald van Haren # Contributor: Alessio 'mOLOk' Bolognino # Contributor: Pawel Rusinek pkgname="griffith" pkgver=0.13 pkgrel=8 pkgdesc="Movie collection manager application" arch=('any') url="http://www.griffith.cc/" license=('GPL2') depends=('pygtk>=2.14.1' 'sqlite' 'python2-pysqlite' \ 'python2-reportlab>=2.3' 'python2-pillow' 'python2-sqlalchemy') optdepends=('python2-psycopg2: postgreSQL support' 'mysql-python: MySQL support' 'python2-chardet: encoding detection of imported CSV files' 'python2-gtkspell: spell checking support' 'griffith-extra-artwork: additional icons') source=("http://launchpad.net/${pkgname}/trunk/0.13/+download/${pkgname}-${pkgver}.tar.gz" "https://raw.githubusercontent.com/ValHue/AUR-PKGBUILDs/master/griffith/validators.py" "http://www.strits.dk/files/PluginMovieIMDB.py") sha256sums=('60576d33aa855ab45d654288d7bf2ead8accecb72fd2acbc373656294ab8f242' 'f5e0b43c6ee56148b55cc650599c96b7774491867d38b47278bc121bf33fb9af' '7184164f5902878350e319caf977079d1ac15babe754a0b5da91f6125dce6348') build() { cd "${pkgname}-${pkgver}" # python2 fix sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' griffith # new bash_completion directory #sed -e 's,BASHCOMPDIR = $\(ETCDIR\)/bash_completion.d,BASHCOMPDIR = $\(PREFIX\)/share/bash-completion/completions,' -i Makefile sed -e 's,BASHCOMPDIR = $(ETCDIR)/bash_completion.d,BASHCOMPDIR = $(PREFIX)/share/bash-completion/completions,' -i Makefile # The version 0.13.0 of griffith isn't compatible with SqlAlchemy 0.8. # http://forum.griffith.cc/index.php/topic,1601.msg5317.html#msg5317 cp -f ../validators.py ./lib/db/validators.py # Update PluginMovieIMDB.py to version 1.15. Thanks to Strit # http://www.strits.dk/files/PluginMovieIMDB.py cp -f ../PluginMovieIMDB.py ./lib/plugins/movie/PluginMovieIMDB.py } package() { cd "${pkgname}-${pkgver}" make DESTDIR=${pkgdir} install # The program creates a wrong symlink so make a new one rm ${pkgdir}/usr/bin/griffith ln -s /usr/share/griffith/lib/griffith ${pkgdir}/usr/bin/griffith }