mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
fixed buildarch & pkgrel, added comment block, and use CARCH to apply aligned
flag specifically for armv5
This commit is contained in:
parent
4f612535e9
commit
7a8e8f3fb1
1 changed files with 16 additions and 6 deletions
|
@ -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"
|
||||
|
||||
if [[ $CARCH == 'arm' ]]; then
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-aligned \
|
||||
--disable-debug \
|
||||
--disable-debug
|
||||
else
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-debug
|
||||
fi
|
||||
|
||||
make
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue