2009年7月31日 星期五

製作 deb package for Ubuntu Linux 並且上傳至 Launchpad PPA

這篇是練習過程的筆記, betaradio 現在還是處於 broken 的狀態

準備好原始碼
$ wget http://betaradio.googlecode.com/files/betaradio-0.1.2.tar.bz2
$ tar xf betaradio-0.1.2.tar.bz2 && cd betaradio-0.1.2
初始化動作
$ export DEBFULLNAME="Shih-yuan Lee (FourDollars)"
$ export DEBEMAIL="fourdollars@gmail.com"
$ dh_make -s -c gpl -f ../betaradio-0.1.2.tar.bz2
然後編輯 debian/control
Source: betaradio
Section: net
Priority: extra
Maintainer: Shih-yuan Lee (FourDollars) <fourdollars@gmail.com>
Build-Depends: debhelper (>= 7), autotools-dev, libgstreamer0.10-dev, libcurl-dev, libgtk2.0-dev
Standards-Version: 3.8.0
Homepage: http://code.google.com/p/betaradio/

Package: betaradio
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, gstreamer0.10-plugins-base, gstreamer0.10-plugins-bad, gstreamer0.10-plugins-ugly, gstreamer0.10-ffmpeg, gstreamer0.10-alsa
Description: hiChannel electric radio client
 With this client you can listen to the hiChannel electric radio (http://hichannel.hinet.net/radio/index.jsp) without opening a browser.
 It displays a icon on system tray that you can click and select the channel you want to listen to.
編輯 debian/changelog
$ debchange
修改內容
betaradio (0.1.2-1ubuntu1) karmic; urgency=low

  * Initial release.

 -- Shih-yuan Lee (FourDollars) <fourdollars@gmail.com>  Fri, 31 Jul 2009 00:03:22 +0800
產生 deb source package
$ debuild -S
上傳 deb package 至 Launchpad PPA
$ dput ppa:fourdollars/ppa betaradio_0.1.2-1ubuntu1_source.changes
上傳的動作需要先註冊 Launchpad 帳號並且設定好 SSH public key 跟 GPG public key 還有產生 PPA 設定之後才能夠正常上傳
張貼留言