summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Tinio2015-08-14 11:51:44 +0800
committerAaron Tinio2015-08-14 11:51:44 +0800
commit2f221456a3f03415fa2d048d522d9ad6ec5d78e9 (patch)
tree7f3fd1f8a794e7fb78e65840a1ed68db750a54ca
downloadaur-2f221456a3f03415fa2d048d522d9ad6ec5d78e9.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4a39ff943b2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = chruby-git
+ pkgdesc = Changes the current Ruby.
+ pkgver = 0.3.9.r31.172685a
+ pkgrel = 1
+ url = https://github.com/postmodern/chruby
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = bash>=3
+ optdepends = zsh
+ provides = chruby
+ conflicts = chruby
+ source = git+https://github.com/postmodern/chruby
+ md5sums = SKIP
+
+pkgname = chruby-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ffed7d10764
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# 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")
+md5sums=('SKIP')
+
+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
+}