# Maintainer: Jesus E. pkgname=mktorrent pkgver=1.1 pkgrel=1 pkgdesc="Simple command line utility to create BitTorrent metainfo files" arch=('i686' 'x86_64') url='https://github.com/pobrn/mktorrent' license=('GPL-2') depends=('libressl') source=("https://github.com/pobrn/mktorrent/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('2a7ce83950711cf5be098693ad79273b29bcd8a5ef345ea296c7b6b83c532dd3463b347c7137234f1890cb4ea663ee5a5b1878591bc8fb4386d94e4f65410859') build() { cd ${pkgname}-${pkgver} make PREFIX=/usr USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" USE_PTHREADS=1 USE_OPENSSL=1 PREFIX=/usr install install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/$pkgname }