Created
October 25, 2011 15:33
-
-
Save namuol/1313147 to your computer and use it in GitHub Desktop.
AUR PKGBUILD for vim-coffee-script-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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