# Contributor: Denis Ryabyy <vv1r0x@gmail.com>
# Maintainer: Denis Ryabyy <vv1r0x@gmail.com>
pkgname=ctorrent-dnh
pkgver=3.3.2
pkgrel=0
pkgdesc="Enhanced CTorrent is a BitTorrent client for unix-like environments"
url="http://www.rahul.net/dholmes/ctorrent/"
arch="all"
license="GPL-2.0"
source="http://www.rahul.net/dholmes/ctorrent/${pkgname}${pkgver}.tar.gz
	unistd.patch"
builddir="$srcdir/${pkgname}${pkgver}"

build() {
	cd "$builddir"
	./configure --prefix=/usr && make
}

package () {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="59b23dd05ff70791cd6449effa7fc3b6  ctorrent-dnh3.3.2.tar.gz
d017bf6725e4d56d118bfe817bd211e4  unistd.patch"
sha256sums="c87366c91475931f75b924119580abd06a7b3cb3f00fef47346552cab1e24863  ctorrent-dnh3.3.2.tar.gz
893d308cdfbca91d610982713de8954d14a1623a6120442d366c0141af218a86  unistd.patch"
sha512sums="e59b2b899b8603e42a5754d5ce65f661b135b8e107140e0472af379b2b06ee2985239ed0ebf19dcaef788e617b99eac35ad32ad2d10352e2fcf5a6dc084d27dd  ctorrent-dnh3.3.2.tar.gz
0f1e851202c8945c6a8c630b1ea54426bef542c7661c75d0ea97a7bd176cf503ba529a2439b4c13f7c3e7631854c9a207a788ac77fd5774e43b236c76bc57bf0  unistd.patch"
