2013-10-22 01:59:38 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
2015-09-05 19:35:19 +00:00
|
|
|
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
|
2013-10-22 01:59:38 +00:00
|
|
|
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
|
|
|
|
# Contributor: Jeff Mickey <jeff@archlinux.org>
|
|
|
|
# Contributor: sh__
|
|
|
|
|
2013-10-22 02:45:36 +00:00
|
|
|
# ALARM: jdoe0
|
|
|
|
# --enable-aligned flag is required to work correctly on armv5
|
|
|
|
|
2013-10-22 01:59:38 +00:00
|
|
|
pkgname=libtorrent
|
2018-06-07 12:38:07 +00:00
|
|
|
pkgver=0.13.7
|
|
|
|
pkgrel=1
|
2013-10-22 01:59:38 +00:00
|
|
|
pkgdesc='BitTorrent library with a focus on high performance and good code'
|
2015-07-13 23:48:39 +00:00
|
|
|
url='http://rakshasa.github.io/rtorrent/'
|
2018-06-07 12:38:07 +00:00
|
|
|
arch=('x86_64')
|
2013-10-22 01:59:38 +00:00
|
|
|
license=('GPL')
|
|
|
|
depends=('openssl')
|
2018-06-07 12:38:07 +00:00
|
|
|
source=("https://github.com/rakshasa/rtorrent/releases/download/v0.9.${pkgver##*.}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'https://github.com/rakshasa/libtorrent/commit/4607bbf7.patch')
|
|
|
|
sha256sums=('c738f60f4d7b6879cd2745fb4310bf24c9287219c1fd619706a9d5499ca7ecc1'
|
|
|
|
'88238b777b2d5c01d0ed3d0093554475c004db51193db88f91d41b9a4db50bb8')
|
2013-10-22 01:59:38 +00:00
|
|
|
|
2015-07-13 21:21:37 +00:00
|
|
|
prepare() {
|
2017-04-24 19:06:41 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2018-06-07 12:38:07 +00:00
|
|
|
patch -p1 -i ../4607bbf7.patch
|
|
|
|
./autogen.sh
|
2015-07-13 21:21:37 +00:00
|
|
|
}
|
|
|
|
|
2013-10-22 01:59:38 +00:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2018-06-07 12:38:07 +00:00
|
|
|
export CXXFLAGS+=' -fno-strict-aliasing'
|
2013-10-22 02:45:36 +00:00
|
|
|
|
2013-10-23 00:01:20 +00:00
|
|
|
[[ $CARCH == 'arm' ]] && CONFIG='--enable-aligned'
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-debug $CONFIG
|
2013-10-22 01:59:38 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|