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

pkgname=which
pkgver=2.21
pkgrel=6.1
pkgdesc='A utility to show the full path of commands'
url='https://savannah.gnu.org/projects/which/'
license=('GPL3')
ncxfab_makedepends=("base-devel" "bash" "make" "crosspacman" "coreutils")
ncxfat_makedepends=("binutils" "glibc" "gcc")
# gpg key is using deprecated md5 algo, do not use
# check if a new one is issued in the next release
source=("https://ftp.gnu.org/gnu/which/which-$pkgver.tar.gz")
sha256sums=('f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad')

build() {
  cd which-$pkgver
  ./configure --prefix="$MPKG_USRPATH" --host="$MPKG_TARGETMACHINE"
  make
}

package() {
  ncxfah_depends=("bash")
  ncxfat_depends=("glibc")
  cd which-$pkgver
  make DESTDIR="$pkgdir" install
}

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