RcrdBrt

Untitled

Sep 6th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Maintainer: Riccardo Berto <[email protected]>
  2. pkgname=AOSCompiler
  3. pkgver=0.1
  4. pkgrel=1
  5. pkgdesc="AOSCompiler by lithid to compile Android sources"
  6. arch=('i686' 'x86_64')
  7. url="git://github.com/lithid/AOSCompiler.git"
  8. license=('GPL')
  9. groups=()
  10. depends=()
  11. makedepends=('git' 'make' 'gcc')
  12. provides=()
  13. conflicts=()
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=
  18. source=()
  19. noextract=()
  20. md5sums=() #generate with 'makepkg -g'
  21.  
  22. _gitroot=GITURL
  23. _gitname=MODENAME
  24.  
  25. build() {
  26. cd "$srcdir"
  27. msg "Connecting to GIT server...."
  28.  
  29. if [[ -d "$_gitname" ]]; then
  30. cd "$_gitname" && git pull origin
  31. msg "The local files are updated."
  32. else
  33. git clone "$_gitroot" "$_gitname"
  34. fi
  35.  
  36. msg "GIT checkout done or server timeout"
  37. msg "Starting build..."
  38.  
  39. rm -rf "$srcdir/$_gitname-build"
  40. git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  41. cd "$srcdir/$_gitname-build"
  42.  
  43. #
  44. # BUILD HERE
  45. #
  46.  
  47. }
  48.  
  49. package() {
  50. cd "$srcdir/$_gitname-build"
  51. make DESTDIR="$pkgdir/" install
  52. }
  53.  
  54. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment