Description: Install to proper multiarch dir instead of just /usr/lib
Author: Ben Westover <me@benthetechguy.net>
Bug: https://github.com/benthetechguy/rokuecp/issues/1
Applied-Upstream: 6925b897402cf5dd2939930d2bff5ebe20ee092a
Last-Update: 2025-07-16

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,8 +50,8 @@
 
     configure_file(rokuecp.pc.in rokuecp.pc @ONLY)
     install(TARGETS rokuecp
-        ARCHIVE DESTINATION lib
-        LIBRARY DESTINATION lib
+        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
         PUBLIC_HEADER DESTINATION include)
-    install(FILES "${CMAKE_BINARY_DIR}/rokuecp.pc" DESTINATION lib/pkgconfig)
+    install(FILES "${CMAKE_BINARY_DIR}/rokuecp.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 endif()
--- a/rokuecp.pc.in
+++ b/rokuecp.pc.in
@@ -1,6 +1,6 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
 includedir=${prefix}/include
 
 Name: rokuecp
