+src_prepare () {
+ local exe binpatches=(
+ # Adjust stack allocation size to work with libtiff.so.5
+ libtiff_compat
+ )
+
+ use amd64 && exe=uplink.bin.x86_64
+ use x86 && exe=uplink.bin.x86
+
+ for f in "${binpatches[@]}"; do
+ patch=$exe.$f.vcdiff
+ einfo "Applying $patch"
+ xdelta3 -fds "$exe" "$FILESDIR/$patch" "$exe" || die
+ done
+
+ default
+}
+
+src_compile () {