Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

clojure-contrib-git-20101005-1

By: a guest on Oct 5th, 2010  |  syntax: Bash  |  size: 1.13 KB  |  hits: 123  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Chris O'Donnell <christopher dot p dot odonnell at gmail dot com>
  2. # Contributor: Sam May <sam.m4y@gmail.com>
  3. pkgname=clojure-contrib-git
  4. pkgver=20101005
  5. pkgrel=1
  6. pkgdesc="User contributions for the Clojure programming language."
  7. arch=('i686' 'x86_64')
  8. url="http://www.clojure.org"
  9. license=("EPL")
  10. depends=('java-environment')
  11. makedepends=('maven' 'git')
  12. provides=('clojure-contrib')
  13. conflicts=('clojure-contrib')
  14.  
  15. _gitroot=git://github.com/clojure/clojure-contrib.git
  16. _gitname=clojure-contrib
  17.  
  18. build() {
  19.   cd ${srcdir}
  20.  
  21.   msg "Connecting to github.com GIT server..."
  22.   if [ -d ${_gitname} ]; then
  23.     (cd ${_gitname} && git pull origin)
  24.   else
  25.     git clone ${_gitroot}
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting maven build process..."
  30.  
  31.   rm -rf ${_gitname}-build
  32.   git clone ${_gitname} ${_gitname}-build
  33.   cd ${_gitname}-build
  34.  
  35.   mvn package || return 1
  36. }
  37.  
  38. package() {
  39.   mkdir -p ${pkgdir}/usr/share/clojure
  40.   install -m 644 -D ${srcdir}/${_gitname}-build/modules/complete/target/complete-1.3.0-SNAPSHOT.jar \
  41.     ${pkgdir}/usr/share/clojure/clojure-contrib-1.3.0-SNAPSHOT.jar
  42. }