源码编译到deb包
mkdir leafpad
mv leafpad-0.7.9.tar.gz leafpad/
tar zxvf leafpad-0.7.9.tar.gz
tar xvfj leafpad-0.7.9.tar.bz2
cd leafpad-0.7.9
dh_make -e
xxxx@xxx.xxx -f ../leafpad-0.7.9.tar.gz
make clean
dpkg-buildpackage -rfakeroot -uc -b 将代码编译成为软件包
fakeroot debian/rules binary 快速构建临时 .deb 包
目录打包成deb
mkdir ubuntudeb
cd ubuntudeb
tar zxvf binfile.tar.gz
manager the file in the right place
mkdir DEBIAN
(注:可以参考源码编译的DEBIAN目录)
touch ubuntu/DEBIAN/control <<<
Package: gecko-mediaplayer
Version: 1.0
Section: utils
Priority: optional
Architecture: i386
Depends:
Maintainer:
xxxx@xxx.xxx
Description: This package will do good mediaplayer job for you .
<<<
dpkg -b ubuntudeb/ binfile.1.0.deb