summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDct Mei2020-08-07 16:24:15 +0800
committerDct Mei2020-08-07 16:24:15 +0800
commit64230873394db8e3fb9936220ce30f5f75330689 (patch)
treebaea4f7a826e5ba6372c664570957ad7eab6da25
downloadaur-64230873394db8e3fb9936220ce30f5f75330689.tar.gz
feat: v2.0.0
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD34
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cfebbf74abb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = qv2ray-plugin-trojan
+ pkgdesc = Qv2ray Plugin: Trojan
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/Qv2ray/QvPlugin-Trojan
+ arch = x86_64
+ groups = qv2ray-plugin
+ license = GPL3
+ makedepends = boost
+ makedepends = cmake
+ makedepends = git
+ makedepends = libffi
+ makedepends = ninja
+ makedepends = qt5-tools
+ depends = boost-libs
+ depends = openssl
+ depends = qt5-base
+ depends = qv2ray
+ source = qv2ray-plugin-trojan-2.0.0::git+https://github.com/Qv2ray/QvPlugin-Trojan.git#tag=v2.0.0
+ sha256sums = SKIP
+
+pkgname = qv2ray-plugin-trojan
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2364a2b2b91
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Dct Mei <dctxmei@gmail.com>
+
+pkgname=qv2ray-plugin-trojan
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Qv2ray Plugin: Trojan"
+arch=('x86_64')
+url="https://github.com/Qv2ray/QvPlugin-Trojan"
+license=('GPL3')
+depends=('boost-libs' 'openssl' 'qt5-base' 'qv2ray')
+makedepends=('boost' 'cmake' 'git' 'libffi' 'ninja' 'qt5-tools')
+groups=('qv2ray-plugin')
+source=("$pkgname-$pkgver::git+$url.git#tag=v$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver/"
+ git submodule update --init --recursive
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver/"
+ mkdir -p build && cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DFORCE_TCP_FASTOPEN=ON \
+ -GNinja
+ ninja
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/build/"
+ install -Dm 644 libQvTrojanPlugin.so -t "$pkgdir/usr/share/qv2ray/plugins/"
+} \ No newline at end of file