summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee678ad378e5403641e6cbcb415c00606784c441 (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
# Maintainer: Dct Mei <dctxmei@yandex.com>

pkgname=qv2ray-plugin-trojan
pkgver=3.0.0
pkgrel=1
pkgdesc="Qv2ray Plugin: Trojan"
arch=('x86_64')
url="https://github.com/Qv2ray/QvPlugin-Trojan"
license=('GPL3')
depends=('openssl' 'qt5-base' 'qv2ray')
makedepends=('boost' 'cmake' 'git' 'ninja')
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 \
          -GNinja
    ninja
}

package() {
    cd "${srcdir}"/"${pkgname}-${pkgver}"/build/
    install -Dm 644 libQvPlugin-Trojan.so -t "${pkgdir}"/usr/share/qv2ray/plugins/
}