PKGBUILDs/community/libtorrent/PKGBUILD
2015-09-05 19:35:19 +00:00

48 lines
1.1 KiB
Bash

# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Maintainer: Jaroslav Lichtblau <svetlemodry@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
pkgname=libtorrent
pkgver=0.13.6
pkgrel=1
pkgdesc='BitTorrent library with a focus on high performance and good code'
url='http://rakshasa.github.io/rtorrent/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('openssl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rakshasa/${pkgname}/archive/${pkgver}.tar.gz")
sha1sums=('9ca6ca9698f81c758fe934b52374f23588a7cc78')
options=('!libtool')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed '/AM_PATH_CPPUNIT/d' -i configure.ac
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
[[ $CARCH == 'arm' ]] && CONFIG='--enable-aligned'
./configure \
--prefix=/usr \
--disable-debug $CONFIG
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}