1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # Maintainer: Jake McGinty <[email protected]>
- pkgname=innernet
- pkgver=1.5.2
- pkgrel=1
- pkgdesc="A tool to manage WireGuard network topologies."
- arch=('x86_64')
- url="https://github.com/tonarino/innernet"
- license=('MIT')
- depends=('sqlite')
- conflicts=('innernet-git')
- makedepends=('git' 'cargo' 'clang' 'llvm')
- source=("$pkgname::git+https://github.com/tonarino/innernet#tag=v$pkgver")
- sha1sums=('SKIP')
- build() {
- cd "$pkgname"
- cargo build --release --locked --target-dir=target
- }
- check() {
- cd "$pkgname"
- cargo test --release --locked --target-dir=target
- }
- package() {
- cd "$pkgname"
- install -Dm755 "target/release/innernet" "$pkgdir/usr/bin/innernet"
- install -Dm755 "target/release/innernet-server" "$pkgdir/usr/bin/innernet-server"
- install -Dm644 "client/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
- install -Dm644 "server/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
- install -Dm644 "doc/innernet.8.gz" "$pkgdir/usr/share/man/man8/innernet.8.gz"
- install -Dm644 "doc/innernet-server.8.gz" "$pkgdir/usr/share/man/man8/innernet-server.8.gz"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- }
- # vim:set ts=2 sw=2 et:
|