Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Oct 19th, 2010  |  syntax: Bash  |  size: 1.13 KB  |  hits: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Jacco Koning <archlinux@menollo.nl>, with help from qwak
  2.  
  3. pkgname=usb-creator
  4. pkgver=0.2.25
  5. pkgrel=1
  6. pkgdesc="$pkgname, This is a simple utility designed to make bootable USB desktop images from Ubuntu CDs. "
  7. arch=('i686' 'x86_64')
  8. url="http://packages.ubuntu.com/karmic/usb-creator"
  9. license=('GPL3')
  10. depends=('parted' 'python2' 'glade' 'libglade' 'pygtk' 'syslinux' 'python-distutils-extra' 'gnome-python' 'dbus-python' 'cdrkit' 'mtools')
  11. makedepends=('python2')
  12. source=(http://archive.ubuntu.com/ubuntu/pool/main/u/usb-creator/usb-creator_$pkgver.tar.gz )
  13. build() {
  14.         src_prog_dir=usb-creator
  15.         cd $srcdir/$src_prog_dir/
  16.         find . | xargs grep '^#!.*python$' | sed  's/:.*//' |xargs sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
  17.         find . | xargs grep '^#!.*python$' | sed  's/:.*//' |xargs sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_'
  18.  
  19.         python2 setup.py install --root=$pkgdir
  20.  
  21.         mkdir $pkgdir/usr/share/usb-creator/ -p
  22.         cp $srcdir/$src_prog_dir/gui/* $pkgdir/usr/share/usb-creator/
  23.  
  24.         mkdir $pkgdir/usr/share/pixmaps/ -p
  25.         cp $srcdir/$src_prog_dir/desktop/usb-creator-gtk.svg $pkgdir/usr/share/pixmaps/
  26.  
  27. }