summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c5596c7c8a672d899bafffacf8d630f8e7e57d8 (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=tundra2-git
pkgver=2.16.3.r0.g39c8633
pkgrel=1
pkgdesc="A code build system that tries to be accurate and fast for incremental builds"
arch=('x86_64')
url='https://github.com/deplinenoise/tundra'
license=('MIT')
provides=('tundra2')
depends=('gcc-libs')
makedepends=('git' 'clang')
source=("tundra2::git+${url}")
sha256sums=('SKIP')

prepare() {
  cd tundra2
  git submodule update --init --recursive
}

pkgver() {
  cd tundra2
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd tundra2
  make
}

package() {
  cd tundra2
  make PREFIX="${pkgdir}"/usr install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}