summaryrefslogtreecommitdiff
path: root/community/mktorrent/PKGBUILD
blob: 1646c598be6a22ab07c533f5efa956f220b3d70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 114093 2014-07-01 13:28:28Z spupykin $
# Contributor: Emil Renner Berthing <esmil@users.sourceforge.net>

pkgname=mktorrent
pkgver=1.0
pkgrel=4
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}
  make PREFIX=/usr \
      USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1
}

package() {
  cd ${srcdir}/mktorrent-${pkgver}
  make DESTDIR=${pkgdir} PREFIX=/usr \
      USE_PTHREADS=1 USE_OPENSSL=1 USE_LONG_OPTIONS=1 USE_LARGE_FILES=1 \
      install
}