summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03662c3ec23977446dc0f3b66173f16d4a2e64b2 (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: database64128 <free122448@hotmail.com>
pkgname=qv2ray-plugin-interface-git
pkgver=v4.0.pre1.r0.626190c
pkgrel=1
pkgdesc="Qv2ray plugin interface"
arch=(x86_64)
url="https://github.com/moodyhunter/QvPlugin-Interface"
license=('GPL3')
depends=('qt6-base' 'grpc' 'protobuf')
makedepends=('git' 'qt6-tools' 'grpc-cli' 'cmake' 'ninja')
provides=('qv2ray-plugin-interface')
conflicts=('qv2ray-plugin-interface')
source=("$pkgname::git+$url")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
    cd "$srcdir/$pkgname"
    mkdir -p build && cd build
    cmake .. -GNinja \
        -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
        -DCMAKE_BUILD_TYPE=Release
    ninja
}

package() {
    cd "$srcdir/$pkgname"
    ninja -C "build" install
}