This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Oct 6th, 2011  |  syntax: None  |  size: 1.07 KB  |  views: 75  |  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:  Eugen Zagorodniy <e dot zagorodniy at gmail dot com>
  2. # Contributor: Laszlo Papp <djszapi2 at gmail com>
  3. # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
  4. # Contributor: Christoph Siegenthaler <csi@gmx.ch>
  5. # Contributor: 4javier <4javiereg4ATgmailDOTcom>
  6.  
  7. pkgname=simulavr
  8. pkgver=0.1.2.7
  9. pkgrel=1
  10. pkgdesc="Simulator for the Atmel AVR family of 8-bit risc microcontrollers"
  11. url="http://savannah.nongnu.org/projects/simulavr"
  12. arch=('i686' 'x86_64')
  13. license=('GPL2')
  14. depends=('ncurses')
  15. makedepends=('avr-libc')
  16. source=(
  17. http://mirror.lihnidos.org/GNU/savannah/simulavr/${pkgname}-${pkgver}.tar.gz
  18. warning.patch)
  19. md5sums=('bba99c7e550db5e217aab7f5537d179c'
  20.          'ad1e4fc8cac31ba0e0326ea4b89998fd')
  21.  
  22. build() {
  23.     cd ${srcdir}/${pkgname}-${pkgver}
  24.     patch -p0 < ${srcdir}/warning.patch
  25.     # Avoid error
  26.     # /usr/bin/avr-ld: unrecognized option '--hash-style=gnu'
  27.     unset LDFLAGS
  28.     ./configure --prefix=/usr
  29.     make
  30. }
  31.  
  32. package() {
  33.     cd ${srcdir}/${pkgname}-${pkgver}
  34.  
  35.     make install DESTDIR=$pkgdir || return 1
  36. }
  37.  
  38.  
clone this paste RAW Paste Data