summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbilabila2019-04-10 18:10:30 +0800
committerbilabila2019-04-10 18:10:30 +0800
commit03e80c2c52bb3914eb8ad00d291a6845aceea5a1 (patch)
tree7cca50ca745ccf9c5c620dd21c7363eaf0a2ecc4
downloadaur-03e80c2c52bb3914eb8ad00d291a6845aceea5a1.tar.gz
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD23
-rwxr-xr-xocp-setup2
3 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..53e2e55a0cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ocp-setup
+ pkgdesc = oceanbase cloud platform setup
+ pkgver = 1.4
+ pkgrel = 1
+ url = https://oceanbase.alipay.com/docs
+ arch = x86_64
+ depends = java-openjfx
+ provides = ocp-setup
+ source = https://gw.alipayobjects.com/os/downloads/ossupload/ocp-release.zip
+ source = ocp-setup
+ sha512sums = SKIP
+ sha512sums = 47e69cb025eda1607a3bd721a4b236a972fd5a37c18883168d0b78d65ca134884efbf876206fc577938fba5b951a31bca9ae70393874cd6171fb2f38030fa175
+
+pkgname = ocp-setup
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..73d27df9961
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: bilabila <bilabila@qq.com>
+pkgname=ocp-setup
+pkgver=1.4
+pkgrel=1
+pkgdesc='oceanbase cloud platform setup'
+arch=(x86_64)
+url=https://oceanbase.alipay.com/docs
+provides=($pkgname)
+depends=(java-openjfx)
+source=(https://gw.alipayobjects.com/os/downloads/ossupload/ocp-release.zip
+$pkgname)
+sha512sums=(SKIP
+47e69cb025eda1607a3bd721a4b236a972fd5a37c18883168d0b78d65ca134884efbf876206fc577938fba5b951a31bca9ae70393874cd6171fb2f38030fa175)
+package() {
+ cd ocp-release
+ d=$pkgdir/usr/share/$pkgname
+ for i in *;do
+ install -Dm644 "$i" $d/"$i"
+ done
+ install -Dm755 $srcdir/$pkgname \
+ $pkgdir/usr/bin/$pkgname
+ echo -e "\n\"选择安装包\"在/usr/share/ocp-setup/\n"
+}
diff --git a/ocp-setup b/ocp-setup
new file mode 100755
index 00000000000..ded9029aa03
--- /dev/null
+++ b/ocp-setup
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec java -jar /usr/share/ocp-setup/ocp-setup-1.0-lite.jar