summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1b0d53b028f77c4db4f87d98b753fdc9a834251 (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>

_name=chronojump
pkgname=$_name-git
pkgver=1.7.1.187.g58dc443d
pkgrel=1
pkgdesc="Measurement, management and statistics of sport short-time tests"
arch=('x86_64')
url="http://chronojump.org/"
license=('GPL')
depends=('gstreamer0.10-base' 'python' 'gtk2')
makedepends=('gtk-sharp-2' 'mono' 'intltool' 'git')
provides=($_name)
conflicts=($_name)
options=(!libtool)
install=$pkgname.install
source=("git+https://git.gnome.org/browse/$_name")
md5sums=('SKIP')

pkgver() {
    cd "$_name"
    git describe --long | sed 's/-/./g'
}

prepare() {
    cd "$_name"
    NOCONFIGURE=1 ./autogen.sh
     # fix path for mono 4.6.1.3-1
    sed -i 's|/mono/4.0/|/mono/4.5/|' configure
    
}

build() {
    cd "$_name"
    ./configure --prefix=/usr
    make
}

check() {
    cd "$_name"
    make -k check || true
}

package() {
    cd "$_name"
    make DESTDIR="$pkgdir" install
}