From 7274b3e738010b5a5fc344bc355ec3b7644e3efe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Thu, 12 Jan 2023 04:42:37 -0300 Subject: [PATCH] recipes: libs/lzlib: Create a .pc file for configure's kmod MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Matías Fonzo --- recipes/libs/lzlib/recipe | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/recipes/libs/lzlib/recipe b/recipes/libs/lzlib/recipe index 0744169a..52576049 100644 --- a/recipes/libs/lzlib/recipe +++ b/recipes/libs/lzlib/recipe @@ -1,6 +1,6 @@ # Build recipe for lzlib. # -# Copyright (c) 2017-2022 Matias Fonzo, . +# Copyright (c) 2017-2023 Matias Fonzo, . # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ set -e program=lzlib version=1.13 -release=1 +release=2 # Define a category for the output of the package name pkgcategory=libs @@ -70,6 +70,24 @@ build() make -j${jobs} DESTDIR="$destdir" install make -j${jobs} DESTDIR="$destdir" install-bin; # Install "minilzip". + # Write a pkg-config file to satisfy "kmod" (oh, touch me!) + mkdir -p "${destdir}/usr/lib${libSuffix}/pkgconfig" + cat << EOF >> "${destdir}/usr/lib${libSuffix}/pkgconfig/lzlib.pc" +prefix=/usr +exec_prefix=\${prefix} +libdir=/usr/lib\${libSuffix} +sharedlibdir=\${libdir} +includedir=\${prefix}/include + +Name: lzlib +Description: a compression library for the lzip file format +Version: $version + +Requires: +Libs: -L\${libdir} -L\${sharedlibdir} -llz +Cflags: -I\${includedir} +EOF + # Compress texinfo documents rm -f "${destdir}/${infodir}/dir"; # Redundancy. -- 2.11.4.GIT