mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:17:14 +08:00
33 lines
579 B
Bash
33 lines
579 B
Bash
|
|
pkgname=which
|
|
pkgver=2.21
|
|
pkgrel=1
|
|
pkgdesc="A utility to show the full path of commands"
|
|
arch=('x86_64')
|
|
url='http://savannah.gnu.org/projects/which'
|
|
license=('GPL3')
|
|
groups=('base' 'base-devel')
|
|
depends=('glibc' 'sh')
|
|
install=which.install
|
|
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
md5sums=('097ff1a324ae02e0a3b0369f07a7544a')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
|
}
|