summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiqueur Librazy2016-12-26 13:33:04 +0800
committerLiqueur Librazy2016-12-26 13:33:04 +0800
commita8057c2418afaa9812f2d4453dd88ee74f6fef2d (patch)
tree0ca40fafdea7e07b01bea6471c3660ed6c012db9
parent4f01be9b1bd45565d463c5472377010ba38229fc (diff)
downloadaur-a8057c2418afaa9812f2d4453dd88ee74f6fef2d.tar.gz
UPDATE rc1
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD22
2 files changed, 8 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 85c9e1199427..1d521606da1c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,12 @@
pkgbase = tidb-bin
pkgdesc = A distributed NewSQL database compatible with MySQL protocol
- pkgver = 0.0.1.20161219094241
+ pkgver = 0.0.1.rc1
pkgrel = 1
url = https://github.com/pingcap/tidb
arch = x86_64
license = APACHE
depends = gcc-libs
- source = http://download.pingcap.org/tidb-latest-linux-amd64.sha256
- source = http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz
- sha256sums = SKIP
- sha256sums = SKIP
+ source = http://download.pingcap.org/tidb-rc1-linux-amd64.tar.gz
+ sha256sums = 5c665b9ca5e75a5baae744518fe20e586860dbdc8eca9d78104ba0c682fcc17c
pkgname = tidb-bin
-
diff --git a/PKGBUILD b/PKGBUILD
index 8ee90f5d8228..5b2ce100f2f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Liqueur Librazy <im@librazy.org>
pkgname=tidb-bin
-pkgver=0.0.1.20161219094241
+pkgver=0.0.1.rc1
pkgrel=1
pkgdesc="A distributed NewSQL database compatible with MySQL protocol"
@@ -8,29 +8,17 @@ arch=('x86_64')
url="https://github.com/pingcap/tidb"
license=('APACHE')
depends=('gcc-libs')
+conflict=('tidb-bin-nightly')
backup=()
options=()
-_nametoday="${pkgname}-${pkgver}-$(date +%FT%T)"
-source=("${_nametoday}.sha256::http://download.pingcap.org/tidb-latest-linux-amd64.sha256"
- "${_nametoday}.tar.gz::http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz")
+source=("http://download.pingcap.org/tidb-rc1-linux-amd64.tar.gz")
sha256sums=(
- 'SKIP'
- 'SKIP')
-
-pkgver() {
- cd "tidb-latest-linux-amd64"
- echo "0.0.1.$(./bin/tidb-server -v |grep 'Time:' | cut -c18-36| sed 's/[ :-]//g')"
-}
-
-prepare() {
- cp "${_nametoday}.tar.gz" "tidb-latest-linux-amd64.tar.gz"
- sha256sum -c ${_nametoday}.sha256
-}
+ '5c665b9ca5e75a5baae744518fe20e586860dbdc8eca9d78104ba0c682fcc17c')
package() {
install -dm755 "$pkgdir"/{opt/tidb/conf,usr/bin}
- cd "tidb-latest-linux-amd64/bin"
+ cd "tidb-rc1-linux-amd64/bin"
install -D -m755 *-server "${pkgdir}/usr/bin"
cd ..
cp -R conf "$pkgdir/opt/tidb/"