diff --git a/templates/libusb/configure_sh_test_invalid.diff b/templates/libusb/configure_sh_test_invalid.diff new file mode 100644 index 00000000000..520db8b068a --- /dev/null +++ b/templates/libusb/configure_sh_test_invalid.diff @@ -0,0 +1,13 @@ +Incorrect comparision operator that doesn't work in strict POSIX shells. + +--- configure.orig 2009-04-27 00:07:12.146716716 +0200 ++++ configure 2009-04-27 00:07:31.506853126 +0200 +@@ -11255,7 +11255,7 @@ $as_echo "$as_me: error: unsupported ope + { (exit 1); exit 1; }; } + esac + +- if test "x$backend" == "xlinux"; then ++ if test "x$backend" = "xlinux"; then + OS_LINUX_TRUE= + OS_LINUX_FALSE='#' + else diff --git a/templates/libusb/template b/templates/libusb/template index e7284f4aac3..784086614bf 100644 --- a/templates/libusb/template +++ b/templates/libusb/template @@ -2,6 +2,8 @@ pkgname=libusb sourcepkg=$pkgname version=1.0.0 +revision=1 +patch_files="configure_sh_test_invalid.diff" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure short_desc="A library which allows userspace access to USB devices"