dbus: fix pkg-config file

This commit is contained in:
Jerome Duval
2021-01-30 13:56:19 +01:00
parent 49a9474fa0
commit 1cda2b3da4

View File

@@ -13,7 +13,7 @@ use behind a firewall with shared NFS home directories."
HOMEPAGE="https://freedesktop.org/wiki/Software/dbus/"
COPYRIGHT="2014 Red Hat, Inc."
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://dbus.freedesktop.org/releases/dbus/dbus-$portVersion.tar.gz"
CHECKSUM_SHA256="f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe"
PATCHES="dbus-$portVersion.patchset"
@@ -68,6 +68,7 @@ PROVIDES_devel="
"
REQUIRES_devel="
dbus$secondaryArchSuffix == $portVersion base
devel:libexecinfo$secondaryArchSuffix
"
BUILD_REQUIRES="
@@ -118,6 +119,11 @@ INSTALL()
mv $libDir/dbus-1.0/include/dbus/*.h $includeDir/dbus-1.0/dbus/
rm -rf $libDir/dbus-1.0/
sed -i \
-e 's|-I${libdir}/dbus-1.0/include||' \
-e "s|prefix}/include|prefix}/$relativeIncludeDir|g" \
$libDir/pkgconfig/dbus-1.pc
prepareInstalledDevelLib libdbus-1
fixPkgconfig
packageEntries devel \