Advertisement
Guest User

Untitled

a guest
Dec 13th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
  2. pkgname=lua-penlight-git
  3. pkgver=20121212
  4. pkgrel=1
  5. pkgdesc="A set of pure Lua libraries focusing on input data handling, functional programming, and OS path management."
  6. arch="any"
  7. url="https://github.com/stevedonovan/Penlight"
  8. license=('MIT')
  9. provides=('lua-penlight')
  10. conflicts=('lua-penlight')
  11. depends=('lua' 'lua-filesystem')
  12. makedepends=('git')
  13.  
  14. _gitroot="$url.git"
  15. _gitname="Penlight"
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.   msg "Connecting to GIT server...."
  20.  
  21.   if [ -d $_gitname ] ; then
  22.     cd $_gitname && git pull origin
  23.     msg "The local files are updated."
  24.   else
  25.     git clone $_gitroot $_gitname
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Installing..."
  30.  
  31.   #
  32.   # BUILD HERE
  33.   #
  34.  
  35.   cd "$srcdir/$_gitname"
  36.     mkdir -p $pkgdir/usr/share/lua/5.2/pl
  37.     cp -r lua/pl/* \
  38.         $pkgdir/usr/share/lua/5.2/pl/
  39.     install -Dm0664 LICENCE.txt \
  40.         $pkgdir/usr/share/licenses/$pkgname/LICENCE.txt
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement