PKGBUILDs/community/libtorrent/PKGBUILD

49 lines
1.1 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
2015-12-10 05:06:48 +00:00
pkgrel=2
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')
2015-09-05 19:35:19 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/rakshasa/${pkgname}/archive/${pkgver}.tar.gz")
sha1sums=('9ca6ca9698f81c758fe934b52374f23588a7cc78')
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
}
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
}