Last active
December 18, 2015 17:49
-
-
Save GhostSquad57/5821487 to your computer and use it in GitHub Desktop.
A simple shell script that builds a fake .deb of jockey-common
This file contains hidden or 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
#!/bin/bash | |
#inspired by kochd's script <https://gist.github.com/kochd/5819972> | |
# installs equivs which is used to generate fake packages | |
sudo apt-get install equivs | |
# creates a file called 'tmp' | |
> tmp | |
# appends package info to tmp | |
echo " | |
Package: jockey-common | |
Priority: optional | |
Section: admin | |
Installed-Size: 728 | |
Maintainer: Martin Pitt <martin.pitt@ubuntu.com> | |
Architecture: all | |
Source: jockey | |
Version: 0.9.7-0ubuntu7 | |
Depends: bash, | |
Description: user interface and desktop integration for driver management | |
Jockey provides a user interface for configuring third-party drivers, | |
such as the Nvidia and ATI fglrx X.org and various Wireless LAN | |
kernel modules. | |
. | |
This package contains the common data shared between the frontends. | |
Python-Version: 2.7 | |
" >> tmp | |
# builds fake package | |
equivs-build tmp | |
# installs fake package | |
sudo dpkg -i jockey-common_0.9.7-0ubuntu7_all.deb | |
rm tmp jockey-common_0.9.7-0ubuntu7_all.deb |
it does work. click on "raw" link to copy text.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script does not work. Multi-line description causes an error when it is processed by equivs-build. I changed to comment to be single-line and it helped.