[arch-commits] Commit in n2n/repos (community-x86_64 community-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Sep 4 13:03:01 UTC 2020


    Date: Friday, September 4, 2020 @ 13:03:01
  Author: felixonmars
Revision: 698498

archrelease: copy trunk to community-x86_64

Added:
  n2n/repos/community-x86_64/
  n2n/repos/community-x86_64/PKGBUILD
    (from rev 698497, n2n/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: n2n/repos/community-x86_64/PKGBUILD (from rev 698497, n2n/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-09-04 13:03:01 UTC (rev 698498)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=n2n
+pkgver=2.8
+pkgrel=1
+pkgdesc="A Peer-to-peer VPN software which makes it easy to create virtual networks bypassing intermediate firewalls"
+arch=('x86_64')
+url="https://github.com/ntop/n2n"
+license=('GPL')
+depends=('libcap' 'openssl')
+optdepends=('libpcap: for n2n-decode')
+makedepends=('cmake' 'ninja' 'libpcap')
+source=("https://github.com/ntop/n2n/archive/$pkgver/n2n-$pkgver.tar.gz")
+sha512sums=('24eaabe1b454fbcf47c251d93fad31bf10241fe7d79b3df8cfd758652fe60f18e4f123054a4319c6b58ae96d130faa93f3d56b1bfec6c91d9c834c8bd5ae71d4')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's/RUNTIME DESTINATION sbin/RUNTIME DESTINATION bin/' CMakeLists.txt
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
+  ninja
+}
+
+package() {
+  cd $pkgname-$pkgver
+  DESTDIR="$pkgdir" ninja install
+}



More information about the arch-commits mailing list