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

pkgname=which
pkgver=2.25
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=('9c9b0e197e0f35845fee8a050aeccb3407ea27f82955be028ee3f148d74bf5d2c844814657ccf16adf03176f94b40bb4ae8817f27ffc7b2196b8d2e1e77f82c8')

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

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

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