summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b2bca6865fd51936a720c537fe42c3bd6976a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=dash-git
pkgver=0.5.10.2.r18.g03cbaba
pkgrel=1
pkgdesc="A POSIX compliant shell that aims to be as small as possible"
arch=('i686' 'x86_64')
url="http://gondor.apana.org.au/~herbert/dash/"
license=('BSD')
depends=('glibc')
makedepends=('git')
provides=('dash')
conflicts=('dash')
install=dash.install
source=("git+https://git.kernel.org/pub/scm/utils/dash/dash.git")
sha256sums=('SKIP')


pkgver() {
  cd "dash"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "dash"

  ./autogen.sh
  ./configure --prefix="/usr" --enable-fnmatch --with-libedit

  make
}

package() {
  cd "dash"

  make DESTDIR="$pkgdir" install
  install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/dash/COPYING"
}