summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33643ab39d13b517a563373ad737892096ed8a2f (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
# Maintainer: Hork <aliyuchang33@outlook.com>
# Maintainer: Leroy.H.Y <admin@lhy0403.top>

pkgname=qv2ray
pkgver=1.3.7.1
pkgrel=1
pkgdesc="Qt cross platform v2ray GUI client"
arch=('i686' 'x86_64')
url="https://github.com/lhy0403/Qv2ray"
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'make' 'qt5-tools')
optdepends=('v2ray' 'v2ray-domain-list-community' 'v2ray-geoip')
provides=('Qv2ray')
source=("git+https://github.com/lhy0403/Qv2ray#tag=v$pkgver")
sha512sums=('SKIP')

build() {
    cd "${srcdir}/Qv2ray"
    git submodule update --init
    mkdir build && cd ./build
    qmake ../
    make -j4
}

package() {
    cd "${srcdir}/Qv2ray/build"
    make install INSTALL_ROOT=$pkgdir
    install -Dm644 ../icons/Qv2ray.desktop $pkgdir/usr/share/applications/Qv2ray.desktop
    install -Dm644 ../icons/Qv2ray.png $pkgdir/usr/share/icons/hicolor/256x256/apps/Qv2ray.png
}