我正在为 Ubuntu/Debian (.deb) 打包我的 Mono GTK# 应用程序。
- 如何找出要在控制文件中列出的依赖项?
- 对于单声道和 gtk# 本身,哪些是标准的?是以-dev结尾的吗?
我查看了 Debian 打包文档,但这些示例似乎过于复杂,带有安装后 Hook 等。
mono 文档中的示例主要涉及带有 automake 等的源代码分发。我只想将二进制文件放在那里。
请您参考如下方法:
我刚刚完成了为 debian 打包我的 GTK# mono 应用程序 (Wide Margin) 的过程。
这是我的控制文件:
Source: widemargin
Section: gnome
Priority: extra
Maintainer: Debian CLI Applications Team <pkg-cli-apps-team@lists.alioth.debian.org>
Uploaders: Daniel Hughes <trampster@gmail.com>
Build-Depends: debhelper (>= 7.0.50~), cli-common-dev (>= 0.7.1), mono-xbuild (>= 2.6.7), libgtk2.0-cil-dev (>= 2.12.10), mono-devel (>= 2.6.7), libglade2.0-cil-dev (>= 2.12.10)
Standards-Version: 3.9.2
Homepage: https://bitbucket.org/trampster/widemargin
Vcs-Git: git://git.debian.org/git/pkg-cli-apps/packages/widemargin.git
Vcs-Browser: http://git.debian.org/?p=pkg-cli-apps/packages/widemargin.git
Package: widemargin
Architecture: all
Depends: ${cli:Depends}, ${misc:Depends}
Description: bible reading and study application
Wide Margin is a bible reading and study application. It has a focus on
speed and simplicity. Features include, as you type searching and passage
navigation, familiar browser based interface, full navigation history and
a built in reading planner which will have you read the old testament
once and the new testament twice every year.
这里要注意的重要一点是,如果您在“依赖项”部分使用 ${cli:Depends}、${misc:Depends},依赖项将自动神奇地为您整理出来。 但是,您必须手动设置 Build-Depends。
第二个技巧是进入#debian-cli irc channel ,它包含 debain 的所有单声道打包器。他们非常乐于助人,会在准备就绪时赞助您为您打包。
