From 7a8e8f3fb11bb2ed42b3a31022b4a831d54a2aef Mon Sep 17 00:00:00 2001 From: jdoe0 Date: Mon, 21 Oct 2013 21:45:36 -0500 Subject: [PATCH] fixed buildarch & pkgrel, added comment block, and use CARCH to apply aligned flag specifically for armv5 --- community/libtorrent/PKGBUILD | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/community/libtorrent/PKGBUILD b/community/libtorrent/PKGBUILD index ff9a3521f..0dd81de4c 100644 --- a/community/libtorrent/PKGBUILD +++ b/community/libtorrent/PKGBUILD @@ -4,11 +4,14 @@ # Contributor: Jeff Mickey # Contributor: sh__ -buildarch=2 +# ALARM: jdoe0 +# --enable-aligned flag is required to work correctly on armv5 + +buildarch=1 pkgname=libtorrent pkgver=0.13.3 -pkgrel=3 +pkgrel=2.1 pkgdesc='BitTorrent library with a focus on high performance and good code' url='http://libtorrent.rakshasa.no/' arch=('i686' 'x86_64') @@ -23,10 +26,17 @@ build() { cd "${srcdir}/${pkgname}-${pkgver}" export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" - ./configure \ - --prefix=/usr \ - --enable-aligned \ - --disable-debug \ + + if [[ $CARCH == 'arm' ]]; then + ./configure \ + --prefix=/usr \ + --enable-aligned \ + --disable-debug + else + ./configure \ + --prefix=/usr \ + --disable-debug + fi make }