summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 228a37b407d55b08c5537a18ab08f47258b6d51d (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
54
55
56
57
58
# Maintainer: Tim van Leuverden <timmy1e at protonmail dot ch>

pkgname=trackma
pkgver=0.8.4
pkgrel=2
pkgdesc="A lightweight and simple program for updating and using lists on several media tracking websites."
url="http://z411.github.io/trackma/"
arch=('any')
conflicts=('trackma-git')
license=('GPL3')
depends=('python')

makedepends=('git'
             'python-setuptools'
             'desktop-file-utils')
			 
optdepends=('python-gobject:   GTK frontend'
            'python-cairo:     GTK frontend'
            'python-pyqt5:     Qt frontend'
            'python-urwid:     ncurses frontend'
            'python-pillow:    thumbnail images for GUI frontends'
			'python-pyinotify: instant media recognition tracker'
			'dbus-python:      MPRIS media recognition tracker'
            'lsof:             polling tracker/pyinotify alternative')

source=("${pkgname}-${pkgver}::git+https://github.com/z411/${pkgname}.git#tag=v${pkgver}"
        "${pkgname}-curses.desktop"
        "${pkgname}-gtk.desktop"
        "${pkgname}-qt.desktop")

sha256sums=('SKIP'
            '80be9ffc3eb66456004a438a3da8950ed8382faa00a3fe61c5ef3980090c4dce'
            'a737f0fd38af4c472dfbca8503f57763bbec7c91568221298db317421a6c5604'
            '988f4c4422577f0657e9ff8a9695ef44796ee6a9c43e07ee7a81369f25c2761f')

prepare() {
  cd ${pkgname}-${pkgver}
  git submodule update --init --recursive
}

package() {
  cd ${pkgname}-${pkgver}
  python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1

  install -Dvm644 "${pkgname}/data/icon.png" \
  "${pkgdir}/usr/share/pixmaps/${pkgname}.png"

  install -Dvm644 "${srcdir}/trackma-curses.desktop" \
  "${pkgdir}/usr/share/applications/${pkgname}-curses.desktop"

  install -vm644  "${srcdir}/trackma-gtk.desktop" \
  "${pkgdir}/usr/share/applications/${pkgname}-gtk.desktop"

  install -vm644  "${srcdir}/trackma-qt.desktop" \
  "${pkgdir}/usr/share/applications/${pkgname}-qt.desktop"
}

# vim: sw=2 ts=2 tw=80 et: