abinfo "Fedora: Also include cmake/pkgconfig ..."
sed -e 's|#add_subdirectory(cmake/pkgconfig)|add_subdirectory(cmake/pkgconfig)|' \
    -i "$SRCDIR"/CMakeLists.txt

abinfo "Fedora: Fixing stlink libdir ..."
sed -e 's|find_package(libusb REQUIRED)|find_package(libusb REQUIRED)\nset(STLINK_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Main library install directory")|' \
    -i "$SRCDIR"/CMakeLists.txt

abinfo "Fedora: Do not hard code STLINK_SERIAL_MAX_SIZE ..."
sed -e 's|static char serialnumber\[28\]|static char serialnumber\[STLINK_SERIAL_MAX_SIZE\]|' \
    -i "$SRCDIR"/src/st-util/gdb-server.c
