SHARE
TWEET

Untitled

a guest Oct 26th, 2011 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Alexander R. <sbir@list.ru>
  2. pkgname=tcc-git
  3. pkgver=20111026
  4. pkgrel=1
  5. pkgdesc="Tiny C Compiler"
  6. arch=('i686' 'x86_64')
  7. url="http://bellard.org/tcc/"
  8. license=('LGPLv2')
  9. depends=()
  10. makedepends=('git' 'texi2html')
  11. optdepends=()
  12. provides=('tcc')
  13. conflicts=('tcc')
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=
  18. changelog=
  19. source=()
  20.  
  21. md5sums=() #generate with 'makepkg -g'
  22.  
  23. _gitroot=git://repo.or.cz/tinycc.git
  24. _gitname=tinycc
  25.  
  26. build() {
  27.   cd "$srcdir"
  28.   msg "Connecting to GIT server...."
  29.  
  30.   if [[ -d "$_gitname" ]]; then
  31.     cd "$_gitname" && git pull origin
  32.     msg "The local files are updated."
  33.   else
  34.     git clone "$_gitroot" "$_gitname"
  35.   fi
  36.  
  37.   #
  38.   # cd "$srcdir/$_gitname"
  39.   # git checkout mob
  40.   #
  41.  
  42.   msg "GIT checkout done or server timeout"
  43.   msg "Starting build..."
  44.  
  45.   rm -rf "$srcdir/$_gitname-build"
  46.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  47.   cd "$srcdir/$_gitname-build"
  48.  
  49.   #
  50.   # BUILD HERE
  51.   #
  52.   sed -i 's/-texi2html -monolithic -number/-texi2html -monolithic/' Makefile
  53.   ./configure --prefix=/usr --disable-static --enable-cross
  54.   make
  55. }
  56.  
  57. package() {
  58.   cd "$srcdir/$_gitname-build"
  59.   make DESTDIR="$pkgdir/" install
  60. }
  61.  
  62. # vim:set ts=2 sw=2 et:
  63.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top