aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 104b397291370485ed7fff0652b24604a4ece7a2 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Unknow 
# Contributor: Ding Jing <dingjing[at]live[dot]cn>
# Cloud Server
_server=cpx51
pkgbase=svclient
pkgver=1.5.0
pkgname=('svclient')
pkgrel=1
groups=('ukui')
arch=('x86_64')
license=('MIT')
pkgdesc="kylin software VPN"
url="https://github.com/dingjingmaster/svclient"
validpgpkeys=('18B65970A361B77D6C7C67C29EE375D12E7A3EB1')
depends=(
    'qt5-base'
)
makedepends=(
    'git'
    'qt5-base'
)
source=(
    "https://github.com/dingjingmaster/svclient/archive/${pkgver}.tar.gz"
)
sha256sums=(
    "9a866a22900073500301d111813754821d3d5ee6fe30abcc68950f9ea592d0c2"
)

prepare() {
    msg "prepare"
}

build() {
    msg "build"
}
package_svclient() {
    msg "${pkgname} package"
    cd "${srcdir}/${pkgname}-${pkgver}"

    install -dm755 "${pkgdir}/usr/lib/"
    install -dm755 "${pkgdir}/usr/share/"
    install -dm755 "${pkgdir}/usr/share/applications"
    install -dm755 "${pkgdir}/etc/systemd/system/"

    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/sslvpn            "${pkgdir}/usr/share/svclient/sslvpn"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/svclient          "${pkgdir}/usr/share/svclient/svclient"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/SVClient.png      "${pkgdir}/usr/share/svclient/SVClient.png"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/SVClient_linux    "${pkgdir}/usr/share/svclient/SVClient_linux"

    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/svmgrsh           "${pkgdir}/usr/share/svclient/svmgrash"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/svmgrsvc          "${pkgdir}/usr/share/svclient/svmgrsvc"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/svmonitor         "${pkgdir}/usr/share/svclient/svmonitor"
    install -Dm655 ${srcdir}/svclient-1.5.0/vpn/svclient/svmonitorsh       "${pkgdir}/usr/share/svclient/svmonitorsh"

    install -Dm755 ${srcdir}/svclient-1.5.0/vpn/usr-lib/*                  "${pkgdir}/usr/lib/"
    install -Dm755 ${srcdir}/svclient-1.5.0/vpn/usr-share-applications/*   "${pkgdir}/usr/share/applications/"

    install -Dm755 ${srcdir}/svclient-1.5.0/vpn/etc-systemd-system/*       "${pkgdir}/etc/systemd/system/"

    install -Dm644 ../../README.md                  "${pkgdir}/usr/share/doc/${pkgname}/README"
    install -Dm644 ../../LICENSE                    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}