summaryrefslogtreecommitdiff
path: root/libtorrent-ipv6/PKGBUILD
blob: 1cfaf0bed3444649b5b821a00333125eb5ddd73e (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
# Contributor: Jon Bergli Heier <snakebite@jvnv.net>
# Based on the official PKGBUILD

pkgname=libtorrent-ipv6
pkgver=0.12.6
pkgrel=1
pkgdesc="BitTorrent library written in C++"
arch=('i686' 'x86_64')
url="http://libtorrent.rakshasa.no"
license=('GPL')
depends=('libsigc++2.0' 'openssl')
options=('!libtool')
provides=('libtorrent=0.12.6')
source=(http://libtorrent.rakshasa.no/downloads/libtorrent-$pkgver.tar.gz
http://home.samfundet.no/~sesse/libtorrent-0.12.6-ipv6-06.patch)
md5sums=('037499ed708aaf72988cee60e5a8d96b'
'a1e2cd1fc64ff04f14eb1bcdfd2af19b')

build() {
  cd "$srcdir/libtorrent-$pkgver"

  patch -p1 < $srcdir/libtorrent-0.12.6-ipv6-06.patch

  CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" \
    ./configure --prefix=/usr --disable-debug --enable-ipv6 || return 1
  make || return 1
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: