Browse Source

which: add new package

tags/milky-way/v0.3
André Silva 1 year ago
parent
commit
aec7a29f1a
1 changed files with 30 additions and 0 deletions
  1. +30
    -0
      which/PKGBUILD

+ 30
- 0
which/PKGBUILD View File

@@ -0,0 +1,30 @@
# Maintainer (Arch): Sébastien Luttringer <seblu@archlinux.org>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): Andreas Radke <andyrtr@archlinux.org>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=which
pkgver=2.21
pkgrel=2.hyperbola1
pkgdesc='A utility to show the full path of commands'
arch=('i686' 'x86_64')
url='https://savannah.gnu.org/projects/which'
license=('GPL-3')
groups=('base' 'base-devel')
depends=('glibc' 'bash')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('d2f04a5c5291f2d7d1226982da7cf999d36cfe24d3f7bda145508efcfb359511251d3c68b860c0ddcedd66b15a0587b648a35ab6d1f173707565305c506dfc61')

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

package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}

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

Loading…
Cancel
Save