summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima2015-07-27 20:53:01 -0300
committerHugo Parente Lima2015-07-27 20:56:26 -0300
commitf6d1ac3e9bea1851a17a9350a0bfa47530a77c26 (patch)
tree2293896b0a352bc92bf2cec555ce030aad64635f
downloadaur-f6d1ac3e9bea1851a17a9350a0bfa47530a77c26.tar.gz
First version.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD40
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4f0a1439143
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = rubycreator-git
+ pkgdesc = Plugin to add Ruby language support to QtCreator IDE.
+ pkgver = VERSION
+ pkgrel = 1
+ url = http://hugopl.github.io/RubyCreator/
+ arch = x86_64
+ license = LGPL3
+ makedepends = git
+ depends = qtcreator
+ provides = rubycreator-git
+ conflicts = rubycreator-git
+ source = git+https://github.com/hugopl/RubyCreator.git#branch=qtc-3.4
+ md5sums = SKIP
+
+pkgname = rubycreator-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cc2bed08bdc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+pkgname=rubycreator-git
+pkgver=VERSION
+pkgrel=1
+pkgdesc="Plugin to add Ruby language support to QtCreator IDE."
+arch=("x86_64")
+url="http://hugopl.github.io/RubyCreator/"
+license=('LGPL3')
+groups=()
+depends=('qtcreator')
+makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("${pkgname%-VCS}")
+conflicts=("${pkgname%-VCS}")
+replaces=()
+backup=()
+options=()
+install=
+source=('git+https://github.com/hugopl/RubyCreator.git#branch=qtc-3.4')
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/RubyCreator"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/RubyCreator"
+ ./configure.rb
+ cd build
+ make -j9
+}
+
+check() {
+ test -f "$srcdir/RubyCreator/build/libRuby.so"
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/lib/qtcreator/plugins"
+ mv "$srcdir/RubyCreator/build/libRuby.so" "$pkgdir/usr/lib/qtcreator/plugins"
+}