123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- # Maintainer: Jake McGinty <[email protected]>
- pkgname=innernet
- pkgver=1.5.0
- 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"
- ln -s innernet "$pkgdir/usr/bin/inn"
- 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:
|