forked from pfragoso/indicator-usb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e49e894
Showing
6 changed files
with
314 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.