summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ecf74bff2d22297ead2d9882a480050ac909a8c (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
# Maintainer: Maxime "pep" Buquet <archlinux@bouah.net>

_pkgbase='gtimelog'
pkgname=gtimelog-collabora-nokeyring-git
pkgver=r328.1f136e9
pkgrel=1
pkgdesc="A time tracking application: Collabora repository. Patched to remove gnomekeyring"
provides=('gtimelog')
arch=('i686' 'x86_64')
url="https://git.collabora.co.uk/cgit/gtimelog.git"
license=('GPL2')
depends=('libsoup' 'python2' 'python2-gobject' 'python2-setuptools')
makedepends=('git' 'python2' 'python2-setuptools')
source=("$_pkgbase::git+https://gitlab.collabora.com/collabora/gtimelog.git"
        'nokeyring.patch')
sha256sums=('SKIP'
            '7550c70300659a387a900ed0ee80dd3afafc8f655284b02e9cf46dced9a99227')

pkgver() {
  cd "$srcdir/$_pkgbase"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$_pkgbase"
  patch -p1 < $srcdir/nokeyring.patch
}

build() {
  cd "$srcdir/$_pkgbase"
  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgbase"
  python2 setup.py install --root="$pkgdir/"
}