wok-next diff libdisasm/receipt @ rev 20564
shell-detector, screenfetch: create $install tree
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 10 10:14:26 2018 +0200 (2018-04-10) |
parents | a0bea82010d7 |
children | 0ec6086e21d6 |
line diff
1.1 --- a/libdisasm/receipt Fri Oct 13 05:58:05 2017 +0300 1.2 +++ b/libdisasm/receipt Tue Apr 10 10:14:26 2018 +0200 1.3 @@ -14,19 +14,20 @@ 1.4 BUILD_DEPENDS="gfortran" 1.5 SPLIT="libdisasm-dev" 1.6 1.7 -# Rules to configure and make the package. 1.8 -compile_rules() 1.9 -{ 1.10 +compile_rules() { 1.11 + case $ARCH in 1.12 + i?86) ARCH_ARGS='CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32';; 1.13 + *) ARCH_ARGS='';; 1.14 + esac 1.15 + 1.16 ./configure \ 1.17 - "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" \ 1.18 + $ARCH_ARGS \ 1.19 $CONFIGURE_ARGS && 1.20 make && 1.21 make DESTDIR=$DESTDIR install 1.22 } 1.23 1.24 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 -genpkg_rules() 1.26 -{ 1.27 +genpkg_rules() { 1.28 case $PACKAGE in 1.29 libdisasm) copy @std;; 1.30 *-dev) copy @dev;;