blob: e527a8ea8bdca1147dbda4fc4cac4e4428411e9c (
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
|
# Contributor: Lucky <archlinux@builds.lucky.li>
## Based on libtorrent [community]
# Maintainer: aksr <aksr at t-com dot me>
pkgname=libtorrent-git
pkgver=0.13.4.r104.g4791513
pkgrel=1
pkgdesc="A BitTorrent library written in C++."
url="https://github.com/rakshasa/libtorrent/"
license=("GPL")
arch=("i686" "x86_64")
depends=("libsigc++" "openssl")
makedepends=("cppunit" "git")
conflicts=('libtorrent')
provides=('libtorrent')
options=("!libtool")
source=("$pkgname::git+https://github.com/rakshasa/libtorrent.git")
md5sums=("SKIP")
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed -r "s/([^-]*-g)/r\1/;s/-/./g"
}
build() {
cd "$srcdir/$pkgname"
./autogen.sh
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
./configure --prefix=/usr --disable-debug
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
}
|