summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuckSoft2020-05-06 17:56:37 +0800
committerDuckSoft2020-05-06 17:56:37 +0800
commite188a56d12f8f8425a7727f639ec6473e4ba7c62 (patch)
tree399c30539a8efd3af9742ee96c537f937a563b38
downloadaur-e188a56d12f8f8425a7727f639ec6473e4ba7c62.tar.gz
initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD41
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2ebc39b32ed
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = qv2ray-plugin-command-git
+ pkgdesc = Qv2ray Plugin: Command
+ pkgver = 20200425.r5.59450df
+ pkgrel = 1
+ url = https://github.com/Qv2ray/QvPlugin-Command
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = make
+ makedepends = qt5-tools
+ makedepends = which
+ makedepends = gcc
+ makedepends = cmake
+ makedepends = ninja
+ depends = qt5-base>5.11.0
+ depends = qv2ray
+ provides = qv2ray-plugin-command
+ conflicts = qv2ray-plugin-command
+ source = qv2ray-plugin-command::git+https://github.com/Qv2ray/QvPlugin-Command
+ sha512sums = SKIP
+
+pkgname = qv2ray-plugin-command-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..42ed713548d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: DuckSoft <realducksoft at gmail dot com>
+pkgname=qv2ray-plugin-command-git
+_pkgname=qv2ray-plugin-command
+pkgver=20200425.r5.59450df
+pkgrel=1
+pkgdesc="Qv2ray Plugin: Command"
+arch=('x86_64')
+url='https://github.com/Qv2ray/QvPlugin-Command'
+license=('GPL3')
+# _virtualdepends=('qv2ray-plugin-host=1')
+depends=('qt5-base>5.11.0' 'qv2ray')
+makedepends=('git' 'make' 'qt5-tools' 'which' 'gcc' 'cmake' 'ninja')
+provides=('qv2ray-plugin-command')
+conflicts=('qv2ray-plugin-command')
+source=("$_pkgname::git+${url}")
+sha512sums=('SKIP')
+pkgver() {
+ cd "$srcdir"/"$_pkgname"
+ local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
+ local count=$(git rev-list --count HEAD)
+ local commit=$(git rev-parse --short HEAD)
+ echo "$date.r${count}.$commit"
+}
+prepare() {
+ cd "$srcdir"/"$_pkgname"
+ git submodule update --init
+}
+build() {
+ cd "$srcdir"/"$_pkgname"
+ mkdir -p build && cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -GNinja
+ ninja
+}
+package() {
+ cd "$srcdir"/"$_pkgname"/build
+ install -Dm644 libQvCommandPlugin.so "$pkgdir"/usr/share/qv2ray/plugins/libQvCommandPlugin.so
+ # NOTE: This virtual dependency will be introduced after Qv2ray stablize its interface.
+ # depends+=(${_virtualdepends[@]})
+}