summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddd887bd80f302cc075f778ce30e9e93fa2c1a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: ValHue <vhuelamo at gmail dot com>
# https://github.com/ValHue/AUR-PKGBUILDs
#
# Maintainer: Strit <danjohansen at strits dot dk>
#
# Contributor: Jaroslav Lichtblau <dragonlord at aur dot archlinux dot org>
# Contributor: Daniel J Griffiths <ghost1227 at archlinux dot us>
# Contributor: Ronald van Haren <ronald at archlinux dot org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail dot com>
# Contributor: Pawel Rusinek <p.rusinek at gmail dot com>
# Contributor: Jashua Gentry <https://gitlab.com/pixel293>
# Contributor: John Cheetham <https://gitlab.com/johncheetham>

pkgname="griffith"
pkgver=0.15
pkgrel=3
_gitcommit=05b5803f770818d6309b0946e77de6e523b51fc9
pkgdesc="Movie collection manager application"
arch=('any')
url="https://gitlab.com/Strit/griffith"
license=('GPL2')
depends=('python-gobject' 'sqlite' 'python-reportlab' 'python-pillow' 'python-sqlalchemy')
optdepends=('python-psycopg2: postgreSQL support'
            'python-mysql-connector: MySQL support'
            'mysql-python: MySQL support'
            'python-chardet: encoding detection of imported CSV files'
            'griffith-extra-artwork: additional icons'
            'python-tmdbsimple: For TMDB Import support')
source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/repository/$pkgver/archive.tar.gz")
md5sums=('ef1d4c76df5ed58bff6bb9fae68555ce')

build() {
    #cd "${pkgname}-${pkgver}"
    cd "${pkgname}-${pkgver}-${_gitcommit}"

    # new bash_completion directory
    sed -e 's,BASHCOMPDIR = $(ETCDIR)/bash_completion.d,BASHCOMPDIR = $(PREFIX)/share/bash-completion/completions,' -i Makefile
}

package() {
    cd "${pkgname}-${pkgver}-${_gitcommit}"

    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

    # The program creates a etc directory empty
    rm -rf ${pkgdir}/etc
}

# vim:set ts=4 sw=2 ft=sh et: