for decompressing debs and making a folder
a side note
#all official slackware package tools I have working and many other package making tools if some day you decide to use them they are packaged for easy installation
you need this little wrapper
Code: Select all
#!/bin/sh
#script name undeb
exec dpkg-deb -x "$@" .
Code: Select all
cd `dirname "$@"`
#-----------
#.deb
#-----------
if echo `basename "$@"` | grep -q '.deb$'; then
Xdialog --wrap --title "DEB" \
--yesno "Do you want to decompress $@ and make a new folder " 0 0
case $? in
0)
echo "Yes chosen."
mkdir -p `basename "$@" .deb`
cp `basename "$@"` `basename "$@" .deb`
cd `basename "$@" .deb`
undeb `basename "$@"`
rm `basename "$@"` .deb
;;
1)
echo "No chosen."
exit
;;
255)
echo "Box closed."
exit
;;
esac
fi