public
Last active

AUR PKGBUILD for vim-coffee-script-git

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# 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"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.