Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR yaffs2utils-svn 20120228 fix

By: allencch on Feb 28th, 2012  |  syntax: Bash  |  size: 1.10 KB  |  views: 50  |  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:  Daniel YC Lin <dlin.tw (at) gmail.com>
  2. pkgname=yaffs2utils-svn
  3. pkgver=27
  4. pkgrel=1
  5. pkgdesc="A collection of utilities to make/extract a YAFFS2/YAFFS1 image for Linux."
  6. arch=(i686 x86_64)
  7. url=http://code.google.com/p/yaffs2utils
  8. license=('GPL2')
  9. makedepends=('svn' 'gcc')
  10. depends=('glibc')
  11. options=('strip')
  12. conflicts=('yaffs2utils-latest' 'yaffs2utils')
  13. source=()
  14.  
  15. _svntrunk="http://yaffs2utils.googlecode.com/svn/trunk/"
  16. _svnmod="yaffs2utils-svn"
  17.  
  18. build() {
  19.   cd $srcdir
  20.   msg "Connecting to $_svntrunk SVN server...."
  21.   if [ -d $_svnmod/.svn ]; then
  22.     (cd $_svnmod && svn up)
  23.   else
  24.     svn co $_svntrunk $_svnmod
  25.   fi
  26.   msg "SVN checkout done or server timeout"
  27.   msg "Starting make..."
  28.   svn export --force $_svnmod $_svnmod-build
  29.   cd $_svnmod-build/src
  30.   touch configs.h
  31.   sed -i 's/\($(CC) \)$(LDFLAGS)\(.*\)$/\1\2 $(LDFLAGS)/g' Makefile
  32.   make
  33. }
  34.  
  35. package() {
  36.   cd $_svnmod-build
  37.   mkdir -p $pkgdir/usr/bin/
  38.   install -m 0755 $srcdir/$_svnmod-build/src/mkyaffs2 \
  39.                   $srcdir/$_svnmod-build/src/unyaffs2 $pkgdir/usr/bin/
  40. }
  41. # vim:set ts=2 sw=2 et sta: