wok-current rev 20491

libzim-dev: add libzim.pc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 27 23:06:17 2018 +0200 (2018-10-27)
parents 5ae1a319f0fe
children 9caf7966225d
files libzim-dev/receipt ninja/receipt
line diff
     1.1 --- a/libzim-dev/receipt	Sat Oct 27 18:38:19 2018 +0200
     1.2 +++ b/libzim-dev/receipt	Sat Oct 27 23:06:17 2018 +0200
     1.3 @@ -9,12 +9,25 @@
     1.4  WEB_SITE="http://www.openzim.org/wiki/Zimlib"
     1.5  WANTED="libzim"
     1.6  
     1.7 -DEPENDS="libzim"
     1.8 +DEPENDS="libzim pkg-config"
     1.9  
    1.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.11  genpkg_rules()
    1.12  {
    1.13 -	mkdir -p $fs/usr/lib
    1.14 +	mkdir -p $fs/usr/lib/pkgconfig
    1.15  	cp -a $install/usr/lib/*a $fs/usr/lib/
    1.16  	cp -a $install/usr/include $fs/usr
    1.17 +	cat > $fs/usr/lib/pkgconfig/libzim.pc <<EOT
    1.18 +prefix=/usr
    1.19 +exec_prefix=\${prefix}
    1.20 +libdir=\${exec_prefix}/lib
    1.21 +includedir=\${prefix}/include
    1.22 +
    1.23 +Name: libzim
    1.24 +Description: Library for manipulating ZIM files.
    1.25 +Version: $VERSION
    1.26 +Libs: -L\${libdir}
    1.27 +Cflags: -I\${includedir}
    1.28 +
    1.29 +EOT
    1.30  }
     2.1 --- a/ninja/receipt	Sat Oct 27 18:38:19 2018 +0200
     2.2 +++ b/ninja/receipt	Sat Oct 27 23:06:17 2018 +0200
     2.3 @@ -22,6 +22,7 @@
     2.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.5  genpkg_rules()
     2.6  {
     2.7 -	mkdir -p $fs/usr/bin
     2.8 +	mkdir -p $fs/usr/bin $install/usr/share/doc
     2.9 +	cp $src/doc/manual.asciidoc $install/usr/share/doc
    2.10  	cp -a $src/ninja $fs/usr/bin
    2.11  }