summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6438cbdcd51fc5f28cf29eaa7e90a63e88c3e08b (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
# Maintainer: Milan Opath <milan dot opath at gmail dot com>
pkgname=traildb-git
pkgver=0.6.r7.g3fb679f
pkgrel=1
arch=('x86_64')
pkgdesc='An efficient tool for storing and querying series of events'
depends=('judy' 'libarchive' 'pkg-config')
makedepends=('git')
provides=('tdb')
license=('MIT')
url='http://traildb.io'
source=("traildb::git+https://github.com/traildb/traildb.git")
sha1sums=('SKIP')

pkgver() {
    cd traildb
    GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"
	printf '%s.r%s.g%s' \
		"$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
		"$(git rev-list --count ${GITTAG}..)" \
		"$(git log -1 --format='%h')"
}

build() {
    cd traildb
    ./autogen.sh
    ./configure --prefix=/usr
    make
}

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