summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bae2a1de0114167f660b4d1861b842ca448446c0 (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
# Maintainer: Jack Random <jack(at)random(dot)to>
# previous maintainer: Aaron Tinio <aptinio at gmail dot com>
pkgname=chruby-git
pkgver=0.3.9.r53.4c46722
pkgrel=1
pkgdesc="Changes the current Ruby."
arch=('any')
url="https://github.com/postmodern/${pkgname%-git}"
license=('MIT')
depends=('bash>=3')
makedepends=('gnupg' 'git')
optdepends=('zsh')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url" 'profile.sh')
md5sums=('SKIP' 'ed2a77e37a4511b7253145624a775945')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="$pkgdir/" PREFIX=/usr install
  install -Dm644 "$srcdir/profile.sh" "$pkgdir/etc/profile.d/chruby.sh"
}