diff --git a/srcpkgs/sam/template b/srcpkgs/sam/template index 04ad1094eb..fadad8d03c 100644 --- a/srcpkgs/sam/template +++ b/srcpkgs/sam/template @@ -19,15 +19,14 @@ post_extract() { sed -i '/Straddc/s/int/wchar_t/g' sam/sam.h } do_build() { - case "$XBPS_TARGET_MACHINE" in - i686*|armv*) USE64BITS=0;; - x86_64*|aarch64*|ppc64*) USE64BITS=1;; - *) msg_error "Unknown word length for $XBPS_TARGET_MACHINE";; - esac + local use64bits=0 + if [ "$XBPS_TARGET_WORDSIZE" = "64" ]; then + use64bits=1 + fi make ${makejobs} CC="${CC} ${CFLAGS}" DESTDIR=/usr LDFLAGS="$LDFLAGS" \ INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/freetype2 \ - RXSAMNAME=rsam TERMNAME=/usr/bin/samterm USE64BITS=${USE64BITS} + RXSAMNAME=rsam TERMNAME=/usr/bin/samterm USE64BITS=${use64bits} } do_install() {