From d95ec96d48430fc3f0d2503c799962fdce606a9d Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 17 Nov 2024 16:53:17 +0800 Subject: [PATCH] which 2.21-1 --- PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..21e6ed6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# 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=which +pkgver=2.21 +pkgrel=1 +pkgdesc="A utility to show the full path of commands" +arch=('x86_64') +url='https://savannah.gnu.org/projects/which/' +license=('GPL3') +groups=('base-devel') +depends=('glibc' 'bash') +source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) +sha256sums=(f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}