fixed buildarch & pkgrel, added comment block, and use CARCH to apply aligned

flag specifically for armv5
This commit is contained in:
jdoe0 2013-10-21 21:45:36 -05:00
parent 4f612535e9
commit 7a8e8f3fb1

View file

@ -4,11 +4,14 @@
# Contributor: Jeff Mickey <jeff@archlinux.org>
# 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
}