blob: 026d0031d146016ea1ae3f9eb02eda4244d5c785 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: skydrome <skydrome@i2pmail.org>
# Contributor: skydrome <skydrome@i2pmail.org>
# Compile a debug build?
_debug=n
# Compile from a specific commit?
#_commit=4202ad3 #0.13.3
#_commit=51cd5ea #0.13.4
_commit=HEAD
# Add the following to your rtorrent.rc if your
# filesystem supports the fallocate() function
# system.file.allocate.set = yes
[[ $(stat -Lfc %T /home) = @(ext4|xfs|btrfs|ocfs2) ]] &&
_falloc='--with-posix-fallocate'
pkgname=libtorrent-pyro-git
pkgver=20140703
pkgrel=1
pkgdesc='BitTorrent library written in C++ (git version)'
url='http://libtorrent.rakshasa.no'
license=('GPL')
arch=('i686' 'x86_64')
depends=('openssl')
makedepends=('git' 'cppunit')
conflicts=('libtorrent' 'libtorrent-git')
provides=('libtorrent')
install=libtorrent-pyro.install
[[ $_debug = 'n' ]] &&
_debug='--disable-debug' || options=(!strip)
source=("git://github.com/rakshasa/libtorrent.git#commit=$_commit")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/libtorrent"
git log -1 --format="%cd" --date=short "$_commit" |tr -d -
}
prepare() {
cd "$srcdir/libtorrent"
#patch -Np1 -i "${startdir}/libtorrent.patch"
./autogen.sh
}
build() {
cd "$srcdir/libtorrent"
#export CC=clang
#export CXX=clang++
export CXXFLAGS+=" -std=c++11"
./configure $_falloc $_debug \
--prefix=/usr
make
}
package() {
make -C "$srcdir/libtorrent" DESTDIR="$pkgdir" install
}
|