clacker
  
 
 
  
 
 
Group: Members 
Posts: 570 
Joined: June 2004 | 
  | 
Posted: June 12 2004,05:49 | 
   | 
 
 
  
I should have been clearer.
  First, you need to get the 4 .deb packages, place them in the ~ directory, open a bash shell,  and install them.
 
 | Code Sample  |  sudo su
  dpkg -i libsdl1.2debian-oss_1.2.7-6_i386.deb dpkg -i libsdl1.2debian_1.2.7-6_i386.deb dpkg -i zlib1g_1.2.1.1-3_i386.deb dpkg -i visualboyadvance_1.7.1-1_i386.deb |  
 
  Then use these commands to get a list of files, directories, and links in the deb pakages and put them into a file called test:
 | Code Sample  |   dpkg --contents libsdl1.2debian-oss_1.2.7-6_i386.deb > test dpkg --contents libsdl1.2debian_1.2.7-6_i386.deb >> test dpkg --contents zlib1g_1.2.1.1-3_i386.deb >> test dpkg --contents visualboyadvance_1.7.1-1_i386.deb >> test
  |  
  Then you need to open the test file and edit it, using 'mkdir', 'cp' and 'link as appropriate.  Also I added the bash thing in front so I could run it.  Here is the front of my modified test so you can see what I did as far as editing and changing things:
 
 | Code Sample  |  #!/bin/bash mkdir usr mkdir usr/share/ mkdir usr/share/doc/ mkdir usr/share/doc/libsdl1.2debian-oss/ cp /usr/share/doc/libsdl1.2debian-oss/CREDITS usr/share/doc/libsdl1.2debian-oss/CREDITS cp /usr/share/doc/libsdl1.2debian-oss/README usr/share/doc/libsdl1.2debian-oss/README cp /usr/share/doc/libsdl1.2debian-oss/README-SDL.txt usr/share/doc/libsdl1.2debian-oss/README-SDL.txt cp /usr/share/doc/libsdl1.2debian-oss/copyright usr/share/doc/libsdl1.2debian-oss/copyright cp /usr/share/doc/libsdl1.2debian-oss/BUGS.gz usr/share/doc/libsdl1.2debian-oss/BUGS.gz cp /usr/share/doc/libsdl1.2debian-oss/changelog.Debian.gz usr/share/doc/libsdl1.2debian-oss/changelog.Debian.gz mkdir usr/lib/ cp /usr/lib/libSDL-1.2.so.0.7.0 usr/lib/libSDL-1.2.so.0.7.0 link usr/lib/libSDL-1.2.so.0.7.0 usr/lib/libSDL-1.2.so.0 ... |  
 
  the -> in the .deb files represent link commands. when you edit them you need to swap the order and add the directory in front.
  execute the script, then tar the directories with
 
 | Code Sample  |  | tar -cvf visualgameboy usr etc |  
 
  gzip it with
 
 | Code Sample  |  | gzip visualgameboy |  
 
  rename it with
 
 | Code Sample  |  | mv visualgameboy.gz visualgameboy.dsl |  
 
  and you have your very own DSL.  Worked fine for me.  I know other have written things in perl to parse the file, but this one is small enough to do by hand. 
 |