Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Stephen Diehl <sdiehl at clarku dot edu>
- pkgname=coffee-script-git
- pkgver=20110104
- pkgrel=1
- pkgdesc='CoffeeScript is a little language that compiles into JavaScript.'
- arch=any
- url=http://coffeescript.org
- license=(custom)
- makedepends=(nodejs)
- md5sums=()
- source=("coffee-script-git.install")
- _gitroot=(https://github.com/jashkenas/coffee-script.git)
- _gitname='coffee-script'
- build() {
- cd "${srcdir}"
- msg "Connecting to the coffee-script git repository..."
- if [ -d "${srcdir}/${_gitname}" ] ; then
- cd ${_gitname} && git pull origin
- msg "The local files are updated."
- else
- git clone ${_gitroot}
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting make..."
- cd "${srcdir}"
- rm -rf ${_gitname}-build
- git clone ${_gitname} ${_gitname}-build
- }
- package() {
- install -dm755 "${pkgdir}/usr/bin"
- install -dm755 "${pkgdir}/usr/lib/${_gitname}"
- cd "${srcdir}/${_gitname}-build/"
- # copy over files
- for f in "bin" "lib" "package.json" "src"; do
- cp -rf "${f}" "${pkgdir}/usr/lib/${_gitname}/"
- done
- for f in "coffee" "cake"; do
- ln -sfn "/usr/lib/${_gitname}/bin/${f}" "${pkgdir}/usr/bin/${f}"
- # ln -Dm755 "bin/${f}" "${pkgdir}/usr/bin/${f}"
- done
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_gitname}/LICENSE"
- install -Dm644 README "$pkgdir/usr/share/doc/${_gitname}/LICENSE"
- }
- md5sums=('3fade03466fafa37c8950ffb72f0e4ba')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement