The new packages from upstream are created in a very neat manner, having arch-independent and dependent sections separated. Unfortunately, the Maemo SDK doesn't cope well with it.
In the i386 target binary-arch is called first, in armel - binary-indep. There's a quick-and-dirty hack to work this around in debian/rules
Code:
# at the beginning
ifeq ($(shell dpkg --print-architecture),armel)
ARCH := armel
else
ARCH := i386
endif
#some code later on
binary-indep: #targets
#some code here
if [$ARCH == i386]; then maemo-optify; fi
#more code here
binary-arch: #targets
#some code here
if [$ARCH == armel]; then maemo-optify; fi
#more code here
Voilá!
__________________
If you want to support my work, you can donate by PayPal or Flattr
In the i386 target binary-arch is called first, in armel - binary-indep. There's a quick-and-dirty hack to work this around in debian/rules
If you want to support my work, you can donate by PayPal or Flattr
Projects no longer actively developed: here