# Contributor: Emil Renner Berthing pkgname=mktorrent pkgver=1.0 pkgrel=1 pkgdesc='Simple command line utility to create BitTorrent metainfo files' arch=('i686' 'x86_64') url='http://mktorrent.sourceforge.net/' license='GPL' depends=('openssl') source=("http://downloads.sourceforge.net/mktorrent/mktorrent-${pkgver}.tar.gz") md5sums=('0da00209da96a0dc39efbb6eb5b4d8ff') build() { cd ${srcdir}/mktorrent-${pkgver} if [ "${CARCH}" = 'i686' ]; then make DESTDIR=${pkgdir} PREFIX=/usr \ USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1 \ install else make DESTDIR=${pkgdir} PREFIX=/usr \ USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 \ install fi }