From 47d0bb7874a9496f1866441eda7f898856964720 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Thu, 5 Aug 2021 19:39:08 +0200 Subject: [PATCH] bzip2: add pkgconfig file --- bzip2/.footprint | 2 ++ bzip2/.signature | 7 ++++--- bzip2/Pkgfile | 9 ++++++--- bzip2/bzip2.pc.in | 11 +++++++++++ 4 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 bzip2/bzip2.pc.in diff --git a/bzip2/.footprint b/bzip2/.footprint index 4cd199c2..56f301f9 100644 --- a/bzip2/.footprint +++ b/bzip2/.footprint @@ -18,6 +18,8 @@ drwxr-xr-x root/root usr/lib/ lrwxrwxrwx root/root usr/lib/libbz2.so -> libbz2.so.1.0.8 lrwxrwxrwx root/root usr/lib/libbz2.so.1.0 -> libbz2.so.1.0.8 -rwxr-xr-x root/root usr/lib/libbz2.so.1.0.8 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/bzip2.pc drwxr-xr-x root/root usr/share/ drwxr-xr-x root/root usr/share/man/ drwxr-xr-x root/root usr/share/man/man1/ diff --git a/bzip2/.signature b/bzip2/.signature index 2fd4160f..bc5f4b7d 100644 --- a/bzip2/.signature +++ b/bzip2/.signature @@ -1,5 +1,6 @@ untrusted comment: verify with /etc/ports/core.pub -RWRJc1FUaeVeqoPkHuNb91U53Uj38BArO1VOBPs1cH5viF3yds0L5v6EapLMo0c8F+5m4c3X7JKS39i012u1opeg+BZzblUzhAI= -SHA256 (Pkgfile) = 44c4b62f391736923b6433f2a96b4c1cee218dc7d4dfc812eef38c243f9ae9f3 -SHA256 (.footprint) = e5910c495a4558c4ff528c84fbc9e08e964210c1b2cba5aedb3830b1c07bc748 +RWRJc1FUaeVeqkzfJmg9z5eTgdzqmi1wdcIcbOXOitesEXVUz9vxARy1pxKXjQcu+TEuVslKz8Y6tg/3jfpvCzApL/W1aknduww= +SHA256 (Pkgfile) = 9804f42feb61a129ed4b822ae13af1f0b8d297c46d118d3938393f5e08620d26 +SHA256 (.footprint) = 950dc248b8578bc6b786259d250d13c8a736bb2f48997ea9684dddfed94f8361 SHA256 (bzip2-1.0.8.tar.gz) = ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 +SHA256 (bzip2.pc.in) = eca9d8cd6376df1fb5442667c603032023fb21d8d183684550da0b96ade39654 diff --git a/bzip2/Pkgfile b/bzip2/Pkgfile index e2fea59d..1a6ac958 100644 --- a/bzip2/Pkgfile +++ b/bzip2/Pkgfile @@ -4,13 +4,14 @@ name=bzip2 version=1.0.8 -release=2 -source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz) +release=3 +source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz + bzip2.pc.in) build() { cd $name-$version - install -d $PKG/usr/{bin,lib,include,share/man/man1} + install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1} sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so make -f Makefile-libbz2_so @@ -33,4 +34,6 @@ build() { install -m 0644 libbz2.a $PKG/usr/lib install -m 0644 bzlib.h $PKG/usr/include install -m 0644 *.1 $PKG/usr/share/man/man1 + + sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc } diff --git a/bzip2/bzip2.pc.in b/bzip2/bzip2.pc.in new file mode 100644 index 00000000..a4dd6825 --- /dev/null +++ b/bzip2/bzip2.pc.in @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=/usr +bindir=${exec_prefix}/bin +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: bzip2 +Description: A file compression library +Version: @VERSION@ +Libs: -L${libdir} -lbz2 +Cflags: -I${includedir}