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

_name=chronojump
pkgname=$_name-git
pkgver=2.3.0.1009.g1fdf0e54f
pkgrel=1
pkgdesc="Measurement, management and statistics of sport short-time tests"
arch=(x86_64)
url="https://chronojump.org/"
license=(GPL2)
depends=(python gtk-sharp-3)
makedepends=(mono intltool git)
provides=($_name)
conflicts=($_name)
options=(!libtool)
install=$pkgname.install
source=("git+https://gitlab.gnome.org/GNOME/$_name.git")
md5sums=('SKIP')

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

prepare() {
  cd "$_name"
  NOCONFIGURE=1 ./autogen.sh
}

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

# https://gitlab.gnome.org/GNOME/chronojump/-/issues/637
check() {
  cd "$_name"
  make -k check || true
}

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