From c6367d6501dc5cb387592a28cb46062f0ea32e36 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] pkgconf 2.3.0-1 --- pkgconf/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgconf/PKGBUILD diff --git a/pkgconf/PKGBUILD b/pkgconf/PKGBUILD new file mode 100644 index 0000000..f29eee2 --- /dev/null +++ b/pkgconf/PKGBUILD @@ -0,0 +1,38 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=pkgconf +pkgver=2.3.0 +pkgrel=1 +pkgdesc="Package compiler and linker metadata toolkit" +arch=('x86_64') +url="http://pkgconf.org/" +license=('custom:ISC') +groups=('base-devel') +depends=('glibc' 'bash') +source=(https://distfiles.ariadne.space/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(3a9080ac51d03615e7c1910a0a2a8df08424892b5f13b0628a204d3fcce0ea8b) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} \ + --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 ${pkgdir}/usr/bin/${CHOST}-pkg-config + + ln -sv pkgconf.1 ${pkgdir}/usr/share/man/man1/pkg-config.1 +}