Skip to content

Instantly share code, notes, and snippets.

@namuol
Created October 25, 2011 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namuol/1313147 to your computer and use it in GitHub Desktop.
Save namuol/1313147 to your computer and use it in GitHub Desktop.
AUR PKGBUILD for vim-coffee-script-git
# Maintainer: Leif Warner <abimelech@gmail.com>
pkgname=vim-coffeescript-git
pkgver=20110823
pkgrel=1
pkgdesc="CoffeeScript syntax support for Vim."
arch=('any')
url="http://github.com/kchmck/vim-coffee-script"
license=('WTFPL')
depends=('vim')
makedepends=('git')
provides=('vim-coffeescript')
conflicts=('vim-coffeescript')
_gitroot="https://github.com/kchmck/vim-coffee-script.git"
_gitname="vim-coffee-script"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
}
package() {
cd "$srcdir/$_gitname-build"
install -d -m755 "${pkgdir}/usr/share/vim/vimfiles"
cp -r after compiler doc ftdetect ftplugin indent syntax "${pkgdir}/usr/share/vim/vimfiles"
install -D -m644 Readme.md "${pkgdir}/usr/share/doc/vim-coffeescript/Readme.md"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment