community/toolame: armv6h bits

This commit is contained in:
Kevin Mihelich 2012-07-29 19:12:06 +00:00
parent 1b16f07f17
commit 726f248bb3

View file

@ -6,8 +6,6 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - Makefile replacements for ARM # - Makefile replacements for ARM
plugrel=1
pkgname=toolame pkgname=toolame
pkgver=02l pkgver=02l
pkgrel=9 pkgrel=9
@ -26,6 +24,7 @@ build() {
patch -p0 < ../toolame-02l.patch patch -p0 < ../toolame-02l.patch
[ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile [ "$CARCH" = "x86_64" ] && sed -i "s|-march=i686|-march=x86-64|g" Makefile
[ "$CARCH" = "arm" ] && sed -i "s|-march=i686|-march=armv5te|g" Makefile [ "$CARCH" = "arm" ] && sed -i "s|-march=i686|-march=armv5te|g" Makefile
[ "$CARCH" = "armv6h" ] && sed -i "s|-march=i686|-march=armv6 -mfloat-abi=hard -mfpu=vfp|g" Makefile
[ "$CARCH" = "armv7h" ] && sed -i "s|-march=i686|-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16|g" Makefile [ "$CARCH" = "armv7h" ] && sed -i "s|-march=i686|-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16|g" Makefile
make make
install -D -m755 toolame $pkgdir/usr/bin/toolame install -D -m755 toolame $pkgdir/usr/bin/toolame