app=mktorrent
version=1.1
build=1sml
homepage="https://github.com/pobrn/mktorrent"
download="https://github.com/pobrn/mktorrent/archive/refs/tags/v1.1.tar.gz"
desc="Utility for creating torrent files used in bittorrent protocol"
requires="openssl"

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

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
  
  applypatch $srcdir/makefile.patch
  make 
  
  cp COPYING $pkgdocs/
  install -Dm 755 mktorrent $pkg/bin/mktorrent

  mkfinalpkg
}

sha512sums="
8dd737fe7bad666e5a92dab697863d282631c0016419bd3a27e3beeb7ddb710bb4fa76fc0538236721f943faea202853b32b7dfd250b81977f30b19445a0c17c  mktorrent-1.1.tar.xz
"
