summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25e2218f6b9ecd8253f6e7a6a87e510d7f4efdd9 (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
# Maintainer: Poscat <poscat@mail.poscat.moe>

pkgname=tinyfecvpn
pkgver=20180820.0
pkgrel=4
pkgdesc="A Lightweight VPN with Build-in Forward Error Correction Support"
arch=('x86_64')
url="https://github.com/wangyu-/tinyfecVPN"
license=('MIT')
makedepends=('git' 'make' 'gcc')
source=("${pkgname}-${pkgver}::git://github.com/wangyu-/tinyfecvpn.git#tag=${pkgver}"
        "conf.json"
        "runtinyfecvpn"
        "tinyfecvpn.install"
        "tinyvpn.service")
noextract=()
sha256sums=('SKIP'
            "86a54964f05ab480251b3906c9618d3818a0f2b3d6ec8a0ec62c125a108439e8"
	    "be76c06962fdf06a7d8c7ced6eadd703207aaba5d3761d9c9dc55322ff451534"
            "645393e08311063a81e91ab7972768c5059f29f601ac5b7858242066f29928f2"
	    "f7a46223bd04ed6e5552aee14079c6ae9165796da41d38b7e98af7914583d4ef")

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    git submodule update --init
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make nolimit 
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    install -D -m 755 tinyvpn "${pkgdir}/usr/bin/tinyvpn"
    cd "${srcdir}"
    install -D -m 644 tinyvpn.service "${pkgdir}/usr/lib/systemd/system/tinyvpn.service"
    install -D -m 644 conf.json "${pkgdir}/usr/share/doc/tinyfecvpn/conf.json"
    install -D -m 644 conf.json "${pkgdir}/etc/tinyfecvpn/conf.json"
    install -D -m 755 runtinyfecvpn "${pkgdir}/usr/bin/runtinyfecvpn"
}