summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorssfdust2016-09-22 12:50:01 +0800
committerssfdust2016-09-22 12:50:01 +0800
commitb174a12d3401835bdca69f395c763258f1bb079b (patch)
treeaaca6966fa846839d74ae7c81c1cadcddc5774a7
parent9f3566e6ac3555b6b160d1a378eddc5d26b7af3f (diff)
downloadaur-b174a12d3401835bdca69f395c763258f1bb079b.tar.gz
fix broken symbolic link
-rw-r--r--PKGBUILD26
1 files changed, 13 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aa8f63ca725..ba965e8c65d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,24 +18,24 @@ source=("git+https://github.com/rdnetto/YCM-Generator.git")
md5sums=('SKIP')
pkgver() {
- cd "${srcdir}"/YCM-Generator/
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "${srcdir}"/YCM-Generator/
+ printf "r%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}"
+ 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}
+ #move vim plugin directory
+ mv ${DESTDIR}/plugin/* ${VIMPLUGIN}
#link the execute file to /usr/bin
mkdir -p "${pkgdir}"/usr/bin
- ln -s "${DESTDIR}"/config_gen.py \
- "${pkgdir}"/usr/bin/ycm_generator
+ ln -s /usr/share/YCM-Generator/config_gen.py "${pkgdir}"/usr/bin/ycm_generator
+
}