# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=which
pkgver=2.23
pkgrel=1
pkgdesc='A utility to show the full path of commands'
arch=('x86_64' 'aarch64')
url='https://savannah.gnu.org/projects/which/'
license=('GPL-3.0-or-later')
depends=(
  bash
  glibc
)
# gpg key is using deprecated md5 algo, do not use
# check if a new one is issued in the next release
source=("https://ftpmirror.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")
b2sums=('64a3ae1f23a4c389f945f6c0985e6f6062b46785125a0d0659ff160560a4a473633d38af71b1505beeabba8336f5a9906f1ba58ab3494635e970bd5529b3936f')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
