blob: 2fad1d80c249de68bcbbf0a0954d954985316b9c (
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: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=tidb-git
pkgver=rc1.23.g5a309947
pkgrel=1
pkgdesc="Distributed SQL database inspired by the desing of Google F1"
arch=('i686' 'x86_64')
url="https://github.com/pingcap/tidb"
license=('APACHE')
depends=('glibc')
makedepends=('go' 'godep' 'git')
source=(git+https://github.com/pingcap/tidb.git)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/tidb"
git describe --tags --always | sed 's|-|.|g'
}
prepare() {
mkdir -p src/github.com/pingcap
cd src/github.com/pingcap
rm -f tidb
ln -s "$srcdir/tidb"
}
build() {
export GOPATH="$srcdir"
export PATH="$PATH:$GOPATH/bin"
cd src/github.com/pingcap/tidb
LDFLAGS= make
}
check() {
export GOPATH="$srcdir"
export PATH="$PATH:$GOPATH/bin"
cd src/github.com/pingcap/tidb
make test
}
package() {
export GOPATH="$srcdir"
export PATH="$PATH:$GOPATH/bin"
cd src/github.com/pingcap/tidb
install -Dm755 bin/tidb-server "$pkgdir"/usr/bin/tidb-server
}
|