# Maintainer: PktSurf <smlinux@pktsurf.in>
app=znc
version=1.7.5
build=1sml
homepage="https://wiki.znc.in/ZNC"
download="https://znc.in/releases/archive/znc-$version.tar.gz"
desc="An advanced IRC bouncer"
requires="gcc-libs zlib python3 openssl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

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

build() {
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --mandir=/share/man \
    --disable-charset \
    --enable-openssl 

  make
  make install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
ef0d118c3be309a935c926267d9a72c5614aef368942a2e5c66bcd502f07bcaaf0e214805d3c36eff9039cedd9d3093a6e38cb4cfd1c2d01070e791842790b1f  znc-1.7.5.tar.lz
"
