wok-6.x rev 12922
Up: clex and cross-compile for ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 29 20:31:27 2012 +0000 (2012-05-29) |
parents | 3bf8d473ac5d |
children | 525a752f75b6 |
files | clex/receipt |
line diff
1.1 --- a/clex/receipt Tue May 29 20:30:26 2012 +0000 1.2 +++ b/clex/receipt Tue May 29 20:31:27 2012 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="clex" 1.7 -VERSION="4.5" 1.8 +VERSION="4.6.patch5" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Text mode file manager." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -9,6 +9,7 @@ 1.13 WEB_SITE="http://www.clex.sk/" 1.14 WGET_URL="http://www.clex.sk/download/$TARBALL" 1.15 TAGS="file-manager" 1.16 +HOST_ARCH="i486 arm" 1.17 1.18 DEPENDS="ncurses" 1.19 BUILD_DEPENDS="ncurses-dev" 1.20 @@ -17,7 +18,12 @@ 1.21 compile_rules() 1.22 { 1.23 cd $src 1.24 - ./configure $CONFIGURE_ARGS && 1.25 + case "$ARCH" in 1.26 + arm) 1.27 + sed -i s'|#include <limits.h>|#define SSIZE_MAX 0x7fffffff|' \ 1.28 + src/util.c ;; 1.29 + esac 1.30 + ./configure $CONFIGURE_ARGS && 1.31 make && make install 1.32 } 1.33 1.34 @@ -25,6 +31,6 @@ 1.35 genpkg_rules() 1.36 { 1.37 mkdir -p $fs/etc $fs/usr/bin 1.38 - cp -a $_pkg/usr/bin/* $fs/usr/bin 1.39 + cp -a $install/usr/bin/* $fs/usr/bin 1.40 cp -a $stuff/skel $fs/etc 1.41 }