summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf89410cec0f1dea450286b74438012db2b79e98 (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.14.r0.g3384818
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')
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"
}