summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosip Ponjavić2015-10-26 21:50:44 +0100
committerJosip Ponjavić2015-10-26 21:50:44 +0100
commit9428dd3aef3cc34663779670d7b6fd274ba2eaf3 (patch)
tree5f2996cb35f110527157ce887330dda2c798c9a0
downloadaur-9428dd3aef3cc34663779670d7b6fd274ba2eaf3.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD41
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c6853179235
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = rtags-git
+ pkgdesc = RTags is a client/server application that indexes C/C++ code.
+ pkgver = v2.0.r699.g737b04e
+ pkgrel = 1
+ url = https://github.com/Andersbakken/rtags
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ makedepends = llvm
+ makedepends = zlib
+ depends = bash
+ depends = clang
+ optdepends = bash-completion: for bash completion
+ optdepends = zlib
+ provides = rtags
+ conflicts = rtags
+ source = git+https://github.com/Andersbakken/rtags.git
+ sha256sums = SKIP
+
+pkgname = rtags-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1afc9ce878
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor:
+
+pkgname=rtags-git
+pkgver=v2.0.r699.g737b04e
+pkgrel=1
+pkgdesc="RTags is a client/server application that indexes C/C++ code."
+arch=('i686' 'x86_64')
+url="https://github.com/Andersbakken/rtags"
+license=('GPL3')
+depends=('bash' 'clang')
+makedepends=('cmake' 'git' 'llvm' 'zlib')
+optdepends=('bash-completion: for bash completion' 'zlib')
+provides=('rtags')
+conflicts=('rtags')
+source=("git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd rtags
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd rtags
+ git submodule init
+ git submodule update
+}
+
+build() {
+ cd rtags
+ cmake . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd rtags
+ make DESTDIR="${pkgdir}/" install
+}