Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 4, 2010
0 parents commit e49e894
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 0 deletions.
Empty file added README
Empty file.
25 changes: 25 additions & 0 deletions deb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python
import commands

def run(c):
return commands.getstatusoutput(c)[0]

def build(dir, name, ver, desc, deps):
run('mkdir ' + dir + 'DEBIAN')

l = (name, ver, ', '.join(deps), desc)
i = 'Package: %s\nPriority: optional\nSection: gnome\nMaintainer: Eugeny Pankov <john.pankov@gmail.com>\nArchitecture: all\nVersion: %s\nDepends: %s\nDescription: %s\n' % l
with open(dir + 'DEBIAN/control', 'w') as f:
f.write(i)

run('dpkg-deb -b ' + dir + ' ' + name + '-' + ver + '.deb')

run('mkdir -p deb/usr/bin')
run('mkdir -p deb/usr/share/icons/hicolor/22x22/status')

run('cp main.py deb/usr/bin/indicator-usb')
run('cp icon.png deb/usr/share/icons/hicolor/22x22/status/indicator-usb-panel.png')

build('deb/', 'indicator-usb', '0.2', 'Application indicator for easy USB device safe-removal', ['python-appindicator', 'python-gnome2', 'python-notify'])
run('rm -r deb')

Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added indicator-usb-0.2.deb
Binary file not shown.
136 changes: 136 additions & 0 deletions indicator-usb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e49e894

Please sign in to comment.