🔒 Repository is read-only – file editing is disabled.

recipes/utils/libnet/PAGBUILD.yaml main

35 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435
pkgname: libnet
pkgver: '1.3'
pkgrel: '2'
pkgdesc: 'Library for constructing and injecting network packets'
url: 'https://libnet-dev.sf.net'
arch: x86_64
license:
- BSD

depends: []
makedepends: []
source:
- 'https://github.com/libnet/libnet/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  export CFLAGS=$CFLAGS" -fPIC" 

  ./configure --prefix=/usr --mandir=/usr/man
  sed -i 's/ sample//g' Makefile
  make

  make DESTDIR=${PKGDIR} install
  install -D -m 755 libnet-config ${PKGDIR}/usr/bin/libnet-config

  # Obsolet lib
  rm -f ${PKGDIR}/usr/lib/libnet.la

  install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE

package: |
  true