summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1c0ce70d7a96e8c644ee047d29a23a786a512b6 (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
# Maintainer: Aaron Tinio <aptinio at gmail dot com>
pkgname=chruby-git
pkgver=0.3.9.r31.172685a
pkgrel=1
pkgdesc="Changes the current Ruby."
arch=('any')
url="https://github.com/postmodern/${pkgname%-git}"
license=('MIT')
depends=('bash>=3')
makedepends=('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"
}