summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorssfdust2015-06-14 21:33:02 +0800
committerssfdust2015-06-14 21:33:02 +0800
commitbb6f7f02a5260c1f14a93b5b597a71804d47dff6 (patch)
tree77f1757e369a4d458b7b2af41d6e162691ca1dbe
downloadaur-bb6f7f02a5260c1f14a93b5b597a71804d47dff6.tar.gz
Initial
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD34
-rw-r--r--ycm-generator.install12
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1b0bb5eeed1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = ycm-generator
+ pkgdesc = Generates config files for YouCompleteMe (https://github.com/Valloric/YouCompleteMe)
+ pkgver = stable57.6aecb04
+ pkgrel = 1
+ url = https://github.com/rdnetto/YCM-Generator
+ install = ycm-generator.install
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = make
+ depends = python2
+ depends = clang
+ optdepends = cmake
+ optdepends = autoconf
+ optdepends = automake
+ provides = ycm-generator-git
+ provides = ycm-generator
+ source = git://github.com/ssfdust/YCM-Generator.git
+ md5sums = SKIP
+
+pkgname = ycm-generator-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..67360c77c8a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: ssfdust <ssfdust@gmail.com>
+pkgname=ycm-generator-git
+pkgbase=ycm-generator
+pkgver=stable57.6aecb04
+pkgrel=1
+pkgdesc="Generates config files for YouCompleteMe (https://github.com/Valloric/YouCompleteMe)"
+arch=('any')
+url="https://github.com/rdnetto/YCM-Generator"
+license=('GPL')
+depends=('make' 'python2' 'clang')
+install=ycm-generator.install
+makedepends=('git')
+optdepends=('cmake' 'autoconf' 'automake')
+provides=('ycm-generator-git' 'ycm-generator')
+source=("git://github.com/ssfdust/YCM-Generator.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/YCM-Generator/
+ printf "stable%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd $srcdir/YCM-Generator/
+ DESTDIR="$pkgdir"/usr/share/YCM-Generator
+ VIMPLUGIN="$pkgdir"/usr/share/vim/vimfiles/plugin
+ sed "s/expand(\"<sfile>:p:h:h\")/\"\/usr\/share\/YCM\-Generator\/\"/g" -i plugin/ycm-generator.vim
+ mkdir -p $DESTDIR
+ mkdir -p $VIMPLUGIN
+ cp -r * $DESTDIR
+
+ #move vim plugin directory
+ mv $DESTDIR/plugin/* $VIMPLUGIN
+}
diff --git a/ycm-generator.install b/ycm-generator.install
new file mode 100644
index 00000000000..fcfbaf51db8
--- /dev/null
+++ b/ycm-generator.install
@@ -0,0 +1,12 @@
+post_install()
+{
+ ln -s /usr/share/YCM-Generator/config_gen.py \
+ /usr/bin/ycm_generator
+ echo "link /usr/share/YCM-Generator/config_gen.py to /usr/bin/ycm_generator"
+ echo "\n"
+}
+post_remove()
+{
+ rm /usr/bin/ycm_generator
+ echo "remove /usr/bin/ycm_generator"
+}