PKGBUILDs/community/libtorrent/PKGBUILD

51 lines
1.5 KiB
Bash
Raw Normal View History

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__
# ALARM: jdoe0
# --enable-aligned flag is required to work correctly on armv5
2013-10-22 01:59:38 +00:00
pkgname=libtorrent
2015-09-05 19:35:19 +00:00
pkgver=0.13.6
2017-04-24 19:06:41 +00:00
pkgrel=3
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/'
2013-10-22 01:59:38 +00:00
arch=('i686' 'x86_64')
license=('GPL')
depends=('openssl')
2017-04-24 19:06:41 +00:00
#source=("http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz")
source=("$pkgname-$pkgver.tar.gz::https://github.com/rakshasa/${pkgname}/archive/${pkgver}.tar.gz"
libtorrent-openssl-1.1.patch::"https://github.com/rakshasa/libtorrent/commit/4607bbf7.patch")
sha256sums=('bf963ac6e73e194a2cd87ebdf809988b5b3d6244bb7cd43d7d0c4852fc501524'
'82f639c1e7cf3299c2a44a705e69286abd33a75c70d2da0594d41d5a08cd8c1a')
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}"
sed '/AM_PATH_CPPUNIT/d' -i configure.ac
# fix build against openssl 1.1
patch -p1 -i ../libtorrent-openssl-1.1.patch
2015-07-13 21:21:37 +00:00
}
2013-10-22 01:59:38 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2015-07-13 23:48:39 +00:00
./autogen.sh
2013-10-22 01:59:38 +00:00
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
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
}