1
0

PKGBUILD 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Maintainer: Jake McGinty <[email protected]>
  2. pkgname=innernet
  3. pkgver=1.5.2
  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. install -Dm644 "client/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
  27. install -Dm644 "server/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]"
  28. install -Dm644 "doc/innernet.8.gz" "$pkgdir/usr/share/man/man8/innernet.8.gz"
  29. install -Dm644 "doc/innernet-server.8.gz" "$pkgdir/usr/share/man/man8/innernet-server.8.gz"
  30. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  31. }
  32. # vim:set ts=2 sw=2 et: