blob: 6c4fc004a7d89acab49d366492a4761e653a7c41 (
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
|
# Maintainer: Cleber Matheus <clebermatheus@outlook.com>
pkgname=vpncloud
pkgver=2.3.0
pkgrel=2
pkgdesc='Peer-to-peer VPN'
arch=('x86_64')
url="https://vpncloud.ddswd.de/"
license=('GPL')
groups=()
makedepends=('cargo' 'git' 'asciidoctor')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dswd/vpncloud/archive/refs/tags/v${pkgver}.tar.gz
vpncloud@.service)
backup=(etc/vpncloud/example.net.disabled)
noextract=()
sha256sums=('b1f3ee63458899d43ca3515322246ad8a2a5a5de6cc9da84927f486e110d9789'
'5f6bc9bd69535ed4c7786cfc6b385ab1c01cffafa4f57d34619247b225c4f13f')
prepare() {
cd ${pkgname}-${pkgver}
}
build() {
cd ${pkgname}-${pkgver}
cargo build --release
}
package() {
cd ${pkgname}-${pkgver}
install -Dt "${pkgdir}"/usr/bin -m0755 target/release/vpncloud
install -Dt "${pkgdir}"/etc/vpncloud -Dm0644 assets/example.net.disabled
install -Dt "${pkgdir}"/usr/share/man/man1 target/vpncloud.1.gz
install -Dt "${pkgdir}"/usr/share/licenses/vpncloud -m0644 LICENSE.md
install -Dt "${pkgdir}"/usr/share/doc/vpncloud -m0644 README.md assets/changelog.txt
install -Dm644 "../vpncloud@.service" -t "${pkgdir}/usr/lib/systemd/system"
}
|