PKGBUILD 813 B

12345678910111213141516171819202122232425262728
  1. pkgname="ptunnel-ng"
  2. pkgver=1.32
  3. pkgrel=1
  4. pkgdesc="A TCP forwarder and proxy used for ICMP/UDP tunneling without creating tun devices. (Ping Tunnel, ICMP Echo Tunnel, UDP Tunnel)"
  5. arch=('i686' 'x86_64')
  6. url='https://www.github.com/lnslbrty/ptunnel-ng'
  7. license=('BSD-3')
  8. makedepends=('git')
  9. provides=("ptunnel-ng=${pkgver}")
  10. source=("https://github.com/lnslbrty/ptunnel-ng/archive/v${pkgver}.tar.gz")
  11. md5sums=('cbb9a17ed0ac728170e03f4fa618a617')
  12. build() {
  13. cd "${srcdir}/${pkgname}-${pkgver}"
  14. ./configure \
  15. --prefix=/usr \
  16. --libdir=/usr/lib \
  17. --disable-pcap \
  18. --disable-selinux
  19. make
  20. }
  21. package() {
  22. cd "${srcdir}/${pkgname}-${pkgver}"
  23. make DESTDIR="${pkgdir}" install
  24. find "${pkgdir}" -type d -name .git -exec rm -r '{}' +
  25. install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ptunnel-ng/LICENSE"
  26. }