summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Tinio2015-08-17 16:53:09 +0800
committerAaron Tinio2015-08-17 16:53:09 +0800
commitdec34f12da29adf51c74e4b509c90c35e404b3fe (patch)
tree4a5b9d991b47b8cf55f5f00a63cae9ea208130b9
parente2624e5d571e7c6f56ef11c24f539f4d8c131825 (diff)
downloadaur-dec34f12da29adf51c74e4b509c90c35e404b3fe.tar.gz
Add chruby configuration
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
-rw-r--r--profile.sh4
3 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4a39ff943b2..df95a2df47e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,7 +11,9 @@ pkgbase = chruby-git
provides = chruby
conflicts = chruby
source = git+https://github.com/postmodern/chruby
+ source = profile.sh
md5sums = SKIP
+ md5sums = 043367f68110c70fe1aa8104be466274
pkgname = chruby-git
diff --git a/PKGBUILD b/PKGBUILD
index 855f634f1d6..d1c0ce70d7a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,8 @@ makedepends=('git')
optdepends=('zsh')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
-source=("git+$url")
-md5sums=('SKIP')
+source=("git+$url" 'profile.sh')
+md5sums=('SKIP' 'ed2a77e37a4511b7253145624a775945')
pkgver() {
cd "$srcdir/${pkgname%-git}"
@@ -22,4 +22,5 @@ pkgver() {
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" PREFIX=/usr install
+ install -Dm644 "$srcdir/profile.sh" "$pkgdir/etc/profile.d/chruby.sh"
}
diff --git a/profile.sh b/profile.sh
new file mode 100644
index 00000000000..c77f28f90ce
--- /dev/null
+++ b/profile.sh
@@ -0,0 +1,4 @@
+if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
+ source /usr/share/chruby/chruby.sh
+ source /usr/share/chruby/auto.sh
+fi