PKGBUILDs/community/libtorrent/PKGBUILD

51 lines
1.2 KiB
Bash
Raw Normal View History

2013-10-22 01:59:38 +00:00
# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# 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-07-13 21:21:37 +00:00
pkgver=0.13.5
2014-05-16 14:06:37 +00:00
pkgrel=1
2013-10-22 01:59:38 +00:00
pkgdesc='BitTorrent library with a focus on high performance and good code'
url='http://libtorrent.rakshasa.no/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('openssl')
2015-07-13 21:21:37 +00:00
source=("http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz"
$pkgname-version.patch)
sha1sums=('0c83e8b9ece2c07986632dcc800f893451b23d71'
'ea80eb35cf5812840315726e67a5243ea6dccad4')
2013-10-22 01:59:38 +00:00
options=('!libtool')
2015-07-13 21:21:37 +00:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed '/AM_PATH_CPPUNIT/d' -i configure.ac
#https://github.com/rakshasa/libtorrent/issues/82
patch -Np0 -i "${srcdir}"/$pkgname-version.patch
}
2013-10-22 01:59:38 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
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
}