Skip to content

Commit 9285f06

Browse files
committed
[new package] warpgate 0.19.1
1 parent a402eb8 commit 9285f06

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

mingw-w64-warpgate/PKGBUILD

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Maintainer: Maksim Bondarenkov <[email protected]>
2+
3+
_realname=warpgate
4+
pkgbase=mingw-w64-${_realname}
5+
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
6+
pkgver=0.19.1
7+
pkgrel=1
8+
pkgdesc="Fully transparent SSH, HTTPS, MySQL and Postgres bastion/PAM that doesn't need additional client-side software (mingw-w64)"
9+
arch=('any')
10+
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
11+
url='https://warpgate.null.page'
12+
msys2_repository_url='https://github.com/warp-tech/warpgate'
13+
license=('spdx:Apache-2.0')
14+
makedepends=("${MINGW_PACKAGE_PREFIX}-rust"
15+
"${MINGW_PACKAGE_PREFIX}-nodejs"
16+
"${MINGW_PACKAGE_PREFIX}-just")
17+
source=("${msys2_repository_url}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
18+
sha256sums=('dedc9abad305007e55aa87afd43cf6371d34e1f64c001d554abe6ff7f05a99a1')
19+
20+
prepare() {
21+
cd "${_realname}-${pkgver}"
22+
23+
just npm ci
24+
cargo fetch --locked --target "${RUST_CHOST}"
25+
}
26+
27+
build() {
28+
cd "${_realname}-${pkgver}"
29+
30+
just npm run build
31+
cargo build \
32+
--release \
33+
--frozen \
34+
-p warpgate \
35+
--all-features
36+
}
37+
38+
check() {
39+
cd "${_realname}-${pkgver}"
40+
41+
cargo test \
42+
--release \
43+
--frozen \
44+
-p warpgate \
45+
--all-features
46+
}
47+
48+
package() {
49+
cd "${_realname}-${pkgver}"
50+
51+
cargo install \
52+
--offline \
53+
--no-track \
54+
--frozen \
55+
--path warpgate \
56+
--all-features \
57+
--root "${pkgdir}${MINGW_PREFIX}"
58+
59+
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
60+
}

0 commit comments

Comments
 (0)