The pkgconf package is a successor to pkg-config and contains a tool for passing the include path and/or library paths to build tools during the configure and make phases of package installations.
Create the PKGBUILD for the Pkgconf package with the following commands:
mkdir /sources/pkgconf
cd /sources/pkgconf
cat > PKGBUILD << "REALEOF"
# Maintainer: Linux From Scratch <lfs-dev@lists.linuxfromscratch.org>
pkgname="pkgconf"
pkgver="2.4.3"
pkgrel="1"
pkgdesc="The pkgconf package is a successor to pkg-config and contains a tool for passing the include path and/or library paths to build tools during the configure and make phases of package installations."
arch=('x86'
'x86_64')
url="https://github.com/pkgconf/pkgconf"
license=('custom'
'MIT')
groups=('core')
depends=('glibc')
makedepends=('bash'
'binutils'
'coreutils'
'gawk'
'gcc'
'grep'
'make'
'sed')
source=('https://distfiles.ariadne.space/pkgconf/pkgconf-2.4.3.tar.xz')
md5sums=('781a513f4ca3d068155482a37986d594')
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr \
--disable-static \
--docdir="/usr/share/doc/${pkgname}-${pkgver}"
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
ln -sv pkgconf "${pkgdir}/usr/bin/pkg-config"
ln -sv pkgconf.1 "${pkgdir}/usr/share/man/man1/pkg-config.1"
}
REALEOF
Prepare the build directory for the pacman user and build the package:
chown -R root:pacman . chmod 2775 . chmod 664 PKGBUILD su pacman -c 'makepkg -L --nodeps'
Add the newly created package to the central package repository:
cp pkgconf-2.4.3-1-$(uname -m).pkg.tar.xz \
/srv/pacman/repos/LFS/
repo-add /srv/pacman/repos/LFS/LFS.db.tar.xz \
/srv/pacman/repos/LFS/pkgconf-2.4.3-1-$(uname -m).pkg.tar.xz
Update the local cache and install the Pkgconf package:
pacman -Syu pacman -S pkgconf --overwrite \* -dd --noconfirm
Finally, copy the source files into the source repository and clean up the build directory:
mkdir /srv/pacman/source/LFS/pkgconf cp PKGBUILD /srv/pacman/source/LFS/pkgconf cd /sources rm -rf pkgconf