# Maintainer: PktSurf <smlinux@pktsurf.in>
app=rtorrent
version=0.9.8
build=1sml
homepage="https://github.com/rakshasa/rtorrent"
download="https://github.com/rakshasa/rtorrent/archive/refs/tags/v$version.tar.gz"
desc="command-line bittorrent client"
requires="gcc-libs netbsd-curses zlib openssl curl libtorrent"

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

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

build() {
  CXXFLAGS+=" -lpthread" \
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
5237eed4c9ffe68db11904a1163cded06110626de5e4d675f38b7b6fdad756e1f2bce64cee2ddb06739d1841ca8ef83c36397f7acab981105bc22e3702b036a1  rtorrent-0.9.8.tar.lz
"
