summaryrefslogtreecommitdiff
path: root/extra/libtorrent-rasterbar/PKGBUILD
blob: 1ae9d45b0d7dbea7f9f57ad95af8f2bece393fb2 (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
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 190043 2013-07-13 12:41:37Z svenstaro $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>

pkgname=libtorrent-rasterbar
pkgver=0.16.10
pkgrel=2
epoch=1
pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around"
url="http://www.rasterbar.com/products/libtorrent/"
arch=('i686' 'x86_64')
license=('BSD')
depends=('boost-libs' 'geoip' 'python2')
makedepends=('boost')
options=('!libtool' '!emptydirs')
source=(http://libtorrent.googlecode.com/files/$pkgname-$pkgver.tar.gz
        'boost-154.patch')
sha1sums=('8b24442132e52f8765c79b20ffdea8b33bc5aa42'
          'b1e66ffbeba5c2b217bc0d02bc2c49aa6b603fa3')

prepare() {
  cd $pkgname-$pkgver
  patch -p1 -i "${srcdir}"/boost-154.patch
}

build() {
  cd $pkgname-$pkgver
  PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
      --enable-python-binding \
      --with-libgeoip=system
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}