PKGBUILDs/community/libtorrent/PKGBUILD
2014-05-16 14:06:37 +00:00

40 lines
943 B
Bash

# $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
pkgname=libtorrent
pkgver=0.13.4
pkgrel=1
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')
source=("http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz")
sha1sums=('3a3ca87054d020bc376abe2c1ea15bbbaef31131')
options=('!libtool')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
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
}