mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +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: Jeff Mickey <jeff@archlinux.org>
|
||||||
# Contributor: sh__
|
# Contributor: sh__
|
||||||
|
|
||||||
buildarch=2
|
# ALARM: jdoe0
|
||||||
|
# --enable-aligned flag is required to work correctly on armv5
|
||||||
|
|
||||||
|
buildarch=1
|
||||||
|
|
||||||
pkgname=libtorrent
|
pkgname=libtorrent
|
||||||
pkgver=0.13.3
|
pkgver=0.13.3
|
||||||
pkgrel=3
|
pkgrel=2.1
|
||||||
pkgdesc='BitTorrent library with a focus on high performance and good code'
|
pkgdesc='BitTorrent library with a focus on high performance and good code'
|
||||||
url='http://libtorrent.rakshasa.no/'
|
url='http://libtorrent.rakshasa.no/'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -23,10 +26,17 @@ build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
if [[ $CARCH == 'arm' ]]; then
|
||||||
--enable-aligned \
|
./configure \
|
||||||
--disable-debug \
|
--prefix=/usr \
|
||||||
|
--enable-aligned \
|
||||||
|
--disable-debug
|
||||||
|
else
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-debug
|
||||||
|
fi
|
||||||
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue