mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
fixes for armv7h architecture
This commit is contained in:
parent
e0e847665c
commit
a9abe32b7a
13 changed files with 19 additions and 19 deletions
|
@ -44,7 +44,7 @@ build() {
|
||||||
patch -Np1 -i ../arm.patch || return 1
|
patch -Np1 -i ../arm.patch || return 1
|
||||||
|
|
||||||
[[ $CARCH == "arm" ]] && CONFIGFLAG="--build=arm-unknown-linux-gnueabi"
|
[[ $CARCH == "arm" ]] && CONFIGFLAG="--build=arm-unknown-linux-gnueabi"
|
||||||
[[ $CARCH == "armv7" ]] && CONFIGFLAG="--build=armv7l-unknown-linux-gnueabi"
|
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--build=armv7l-unknown-linux-gnueabi"
|
||||||
|
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $CONFIGFLAG
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $CONFIGFLAG
|
||||||
make || return 1
|
make || return 1
|
||||||
|
|
|
@ -4,7 +4,7 @@ pkgname=sabnzbd
|
||||||
pkgver=0.6.4
|
pkgver=0.6.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
pkgdesc="A web-interface based binary newsgrabber with NZB file support"
|
||||||
arch=(arm armv7)
|
arch=(arm armv7h)
|
||||||
url="http://www.sabnzbd.org/"
|
url="http://www.sabnzbd.org/"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('par2cmdline' 'python2' 'python-cheetah' 'python-feedparser' 'python-yenc' 'python2-pyopenssl' 'unrar' 'unzip' 'sqlite3' 'curl')
|
depends=('par2cmdline' 'python2' 'python-cheetah' 'python-feedparser' 'python-yenc' 'python2-pyopenssl' 'unrar' 'unzip' 'sqlite3' 'curl')
|
||||||
|
|
|
@ -42,7 +42,7 @@ build() {
|
||||||
|
|
||||||
# ALARM: Specify build host types
|
# ALARM: Specify build host types
|
||||||
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
||||||
[[ $CARCH == "armv7" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
||||||
|
|
||||||
${srcdir}/binutils/configure --prefix=/usr \
|
${srcdir}/binutils/configure --prefix=/usr \
|
||||||
--enable-ld=default --enable-gold \
|
--enable-ld=default --enable-gold \
|
||||||
|
|
|
@ -67,7 +67,7 @@ build() {
|
||||||
|
|
||||||
# ALARM: Specify build host types
|
# ALARM: Specify build host types
|
||||||
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
||||||
[[ $CARCH == "armv7" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
||||||
|
|
||||||
${_basedir}/configure --prefix=/usr \
|
${_basedir}/configure --prefix=/usr \
|
||||||
--libdir=/usr/lib --libexecdir=/usr/lib \
|
--libdir=/usr/lib --libexecdir=/usr/lib \
|
||||||
|
|
|
@ -101,7 +101,7 @@ build() {
|
||||||
|
|
||||||
# ALARM: Specify build host types
|
# ALARM: Specify build host types
|
||||||
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
[[ $CARCH == "arm" ]] && CONFIGFLAG="--host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi"
|
||||||
[[ $CARCH == "armv7" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
[[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi"
|
||||||
|
|
||||||
echo "slibdir=/lib" >> configparms
|
echo "slibdir=/lib" >> configparms
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ pkgrel=${_pkgrel}
|
||||||
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'make')
|
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'make')
|
||||||
_patchname="patch-${pkgver}-${_pkgrel}-ARCH"
|
_patchname="patch-${pkgver}-${_pkgrel}-ARCH"
|
||||||
#_patchname="patch-${pkgver}-1-ARCH"
|
#_patchname="patch-${pkgver}-1-ARCH"
|
||||||
arch=(armv7)
|
arch=(armv7h)
|
||||||
CARCH=armv7
|
CARCH=armv7h
|
||||||
KARCH=arm
|
KARCH=arm
|
||||||
LDFLAGS=""
|
LDFLAGS=""
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
|
|
|
@ -20,8 +20,8 @@ pkgrel=${_pkgrel}
|
||||||
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'make')
|
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'make')
|
||||||
_patchname="patch-${pkgver}-${_pkgrel}-ARCH"
|
_patchname="patch-${pkgver}-${_pkgrel}-ARCH"
|
||||||
#_patchname="patch-${pkgver}-1-ARCH"
|
#_patchname="patch-${pkgver}-1-ARCH"
|
||||||
arch=(armv7)
|
arch=(armv7h)
|
||||||
CARCH=armv7
|
CARCH=armv7h
|
||||||
KARCH=arm
|
KARCH=arm
|
||||||
LDFLAGS=""
|
LDFLAGS=""
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
|
|
|
@ -23,7 +23,7 @@ build() {
|
||||||
cd "${srcdir}/busybox-${pkgver}"
|
cd "${srcdir}/busybox-${pkgver}"
|
||||||
|
|
||||||
unset CFLAGS CXXFLAGS
|
unset CFLAGS CXXFLAGS
|
||||||
if [ ${CARCH} = "armv7" ]; then
|
if [ ${CARCH} = "armv7h" ]; then
|
||||||
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv7-a -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv7-a -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
||||||
else
|
else
|
||||||
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv5te -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=armv5te -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config
|
||||||
|
|
|
@ -13,7 +13,7 @@ pkgname=pacman
|
||||||
pkgver=3.5.3
|
pkgver=3.5.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A library-based package manager with dependency support"
|
pkgdesc="A library-based package manager with dependency support"
|
||||||
arch=('arm' 'armv7')
|
arch=('arm' 'armv7h')
|
||||||
url="http://www.archlinux.org/pacman/"
|
url="http://www.archlinux.org/pacman/"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
groups=('base')
|
groups=('base')
|
||||||
|
@ -29,7 +29,7 @@ source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
|
||||||
makepkg.conf)
|
makepkg.conf)
|
||||||
md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
|
md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
|
||||||
'8a202e08a4e9ffe978c6aa6358e1b640'
|
'8a202e08a4e9ffe978c6aa6358e1b640'
|
||||||
'ef58d47ca67b78e597b0698ac2b97987'
|
'5a572af37873bb8a521ffbf81aa2151e'
|
||||||
'da2e78190c8677e3df4ed9744bc22e7e')
|
'da2e78190c8677e3df4ed9744bc22e7e')
|
||||||
|
|
||||||
# keep an upgrade path for older installations
|
# keep an upgrade path for older installations
|
||||||
|
@ -55,11 +55,11 @@ package() {
|
||||||
mychost="arm-unknown-linux-gnueabi"
|
mychost="arm-unknown-linux-gnueabi"
|
||||||
myflags="-march=armv5te "
|
myflags="-march=armv5te "
|
||||||
;;
|
;;
|
||||||
armv7)
|
armv7h)
|
||||||
install -m644 $srcdir/pacman.conf.armv7 $pkgdir/etc/pacman.conf
|
install -m644 $srcdir/pacman.conf.armv7 $pkgdir/etc/pacman.conf
|
||||||
mycarch="armv7"
|
mycarch="armv7h"
|
||||||
mychost="armv7l-unknown-linux-gnueabi"
|
mychost="armv7l-unknown-linux-gnueabi"
|
||||||
myflags="-march=armv7-a "
|
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
|
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
|
||||||
|
|
|
@ -19,7 +19,7 @@ SyncFirst = pacman
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
Architecture = armv7
|
Architecture = armv7h
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
#IgnorePkg =
|
#IgnorePkg =
|
||||||
|
|
|
@ -6,7 +6,7 @@ pkgname=libjpeg-turbo
|
||||||
pkgver=1.1.1
|
pkgver=1.1.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ARM dummy package for the x86 assembly version"
|
pkgdesc="ARM dummy package for the x86 assembly version"
|
||||||
arch=('arm' 'armv7')
|
arch=('arm' 'armv7h')
|
||||||
url="http://www.archlinuxarm.org"
|
url="http://www.archlinuxarm.org"
|
||||||
depends=('libjpeg')
|
depends=('libjpeg')
|
||||||
license=('BYOB')
|
license=('BYOB')
|
||||||
|
|
|
@ -52,7 +52,7 @@ build() {
|
||||||
sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
|
sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
|
||||||
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
|
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
|
||||||
|
|
||||||
if [ "${CARCH}" = "armv7" ]; then
|
if [ "${CARCH}" = "armv7h" ]; then
|
||||||
useneon=""
|
useneon=""
|
||||||
mymakeflags="-j2"
|
mymakeflags="-j2"
|
||||||
else
|
else
|
||||||
|
|
|
@ -54,7 +54,7 @@ md5sums=('626f900fb59f036d6fea95f08c74b00b'
|
||||||
'86c78e48013492e6b1c41373741d19fd')
|
'86c78e48013492e6b1c41373741d19fd')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
if [ "${CARCH}" = "armv7" ]; then
|
if [ "${CARCH}" = "armv7h" ]; then
|
||||||
export CFLAGS="${CFLAGS} -fPIC"
|
export CFLAGS="${CFLAGS} -fPIC"
|
||||||
export CXXFLAGS="${CXXFLAGS} -fPIC"
|
export CXXFLAGS="${CXXFLAGS} -fPIC"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue