app=libnetfilter-conntrack
version=1.0.7
build=1sml
homepage="https://www.netfilter.org/projects/libnetfilter_conntrack/index.html"
desc="Library for in-kernel connection tracking used by iptables and others"
requires="libmnl libnfnetlink"

build() {
  mkandenterbuilddir
  rm -rf libnetfilter_conntrack-$version

  tar xf $srcdir/libnetfilter_conntrack-$version.tar.?z*
  cd libnetfilter_conntrack-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
4697faa3ff0caae7ba13908d1805d6ce0c4e577a2c18407eca6b82550923fd8c675abac638489124ab72f2a1a27e7bbe0330ca603f7a889dc4a582f5e12dd784  libnetfilter_conntrack-1.0.7.tar.lz
"
