lxc: Fix pkgconfig file
authorRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:26:51 +0000 (23:26 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 28 Nov 2019 07:28:24 +0000 (23:28 -0800)
It's pointing to the host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/lxc/Makefile

index a66d468c5d6a3dbc7498004c9ab6dfcedc067bfb..f22b4f315c9555299ccb6b8695904c54481e9504 100644 (file)
@@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lxc
 PKG_VERSION:=2.1.1
-PKG_RELEASE:=4
-
-PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
-PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://linuxcontainers.org/downloads/lxc/
 PKG_HASH:=68663a67450a8d6734e137eac54cc7077209fb15c456eec401a2c26e6386eff6
 
+PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
+PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
+
 PKG_BUILD_DEPENDS:=lua
 PKG_BUILD_PARALLEL:=1
 
@@ -176,6 +176,8 @@ define Build/InstallDev
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lxc.pc \
                $(1)/usr/lib/pkgconfig/
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/lxc.pc
+       $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/lxc.pc
 endef