blob: 97e7e55c961540272dcc55a8dbf692b9d247bdc1 (
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
|
# Maintainer: HelloImWar <helloimwar at proton dot me>
pkgname=mozwire-git
_pkgname=${pkgname%-git}
pkgver=0.8.0.r2.g69c3b49
pkgrel=2
pkgdesc='A cross-platform client for MozillaVPN'
url='https://github.com/NilsIrl/MozWire'
arch=('x86_64')
license=('GPL3')
depends=('gcc-libs')
makedepends=('git' 'cargo')
source=("${_pkgname}::git+${url}.git")
provides=(${_pkgname})
conflicts=(${_pkgname})
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname}"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${_pkgname}"
cargo build --release --locked --all-features --target-dir=target
}
check() {
cd "${_pkgname}"
cargo test --release --locked --all-features --target-dir=target
}
package() {
cd "${_pkgname}"
install -Dm 755 "target/release/mozwire" -t "${pkgdir}/usr/bin"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${_pkgname}"
}
|