PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer: Jake McGinty <[email protected]>
  2. pkgname=innernet
  3. pkgver=1.5.0
  4. pkgrel=1
  5. pkgdesc="A tool to manage WireGuard network topologies."
  6. arch=('x86_64')
  7. url="https://github.com/tonarino/innernet"
  8. license=('MIT')
  9. depends=('sqlite')
  10. conflicts=('innernet-git')
  11. makedepends=('git' 'cargo' 'clang' 'llvm')
  12. source=("$pkgname::git+https://github.com/tonarino/innernet#tag=v$pkgver")
  13. sha1sums=('SKIP')
  14. build() {
  15. cd "$pkgname"
  16. cargo build --release --locked --target-dir=target
  17. }
  18. check() {
  19. cd "$pkgname"
  20. cargo test --release --locked --target-dir=target
  21. }
  22. package() {
  23. cd "$pkgname"
  24. install -Dm755 "target/release/innernet" "$pkgdir/usr/bin/innernet"
  25. install -Dm755 "target/release/innernet-server" "$pkgdir/usr/bin/innernet-server"
  26. ln -s innernet "$pkgdir/usr/bin/inn"
  27. install -Dm644 "client/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
  28. install -Dm644 "server/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
  29. install -Dm644 "doc/innernet.8.gz" "$pkgdir/usr/share/man/man8/innernet.8.gz"
  30. install -Dm644 "doc/innernet-server.8.gz" "$pkgdir/usr/share/man/man8/innernet-server.8.gz"
  31. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  32. }
  33. # vim:set ts=2 sw=2 et: