wok view libzim-dev/receipt @ rev 24757

pkg-config: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 06:53:58 2022 +0100 (2022-03-18)
parents fe90a00917af
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libzim-dev"
4 VERSION="1.4"
5 CATEGORY="development"
6 SHORT_DESC="Read and write method for ZIM files used by Wikipedia, development files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.openzim.org/wiki/Zimlib"
10 WANTED="libzim"
12 DEPENDS="libzim pkg-config"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/lib/pkgconfig
18 cp -a $install/usr/lib/*a $fs/usr/lib/
19 cp -a $install/usr/include $fs/usr
20 cat > $fs/usr/lib/pkgconfig/libzim.pc <<EOT
21 prefix=/usr
22 exec_prefix=\${prefix}
23 libdir=\${exec_prefix}/lib
24 includedir=\${prefix}/include
26 Name: libzim
27 Description: Library for manipulating ZIM files.
28 Version: $VERSION
29 Libs: -L\${libdir}
30 Cflags: -I\${includedir}
32 EOT
33 }