summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f940ce4d00c92d8fb5901357566fda02ebef206 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
# Contributor: Olivier Ramonat <olivier at ramonat dot fr>

pkgname=gource-git
pkgver=0.53.r1.g3a90a6c
pkgrel=2
pkgdesc="software version control visualization"
license=(GPL3)
arch=(i686 x86_64)
url="https://gource.io/"
depends=(sdl2 sdl2_image pcre2 glew boost-libs freetype2)
makedepends=(boost glm mesa git)
provides=(gource)
conflicts=(gource)
source=("${pkgname%-git}::git+https://github.com/acaudwell/Gource.git"
        "git+https://github.com/acaudwell/Core.git")
sha512sums=('SKIP'
            'SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/gource.//'
}

prepare(){
  cd "${pkgname%-git}"
  git submodule init
  git config submodule.src/core.url "${srcdir}/Core"
  git submodule update

  autoreconf -f -i
}

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

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}