Bạn có thể tạo gói debian từ dự án của mình. Như tôi đã hiểu, bạn muốn tạo một gói dành cho việc phân phối, vì vậy tôi khuyên bạn nên tạo một gói debian từ dự án của bạn. Here là phần giới thiệu cho hệ thống Bao bì Debian. Trong bài viết, tại một số điểm mô tả cách tạo ra một "quy tắc" tập tin đó là cốt lõi của quá trình xây dựng. Đây là một mẫu của nó mà tôi thường sử dụng cho các dự án Qt/KDE của tôi:
#!/usr/bin/make -f
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
#export DH_COMPAT=3
DESTDIR=$(CURDIR)/debian/project
TR_DIR=$(CURDIR)/debian/project/usr/share/qt4/translations
configure:
qmake project.pro
clean:
dh_testdir
dh_testroot
dh_clean
build: configure
dh_testdir
lrelease translations/project_en.ts
$(MAKE)
install: build
mkdir -p $(TR_DIR)
cp translations/project_en.qm $(TR_DIR)
$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/project install
dh_installdirs
binary-arch: build install
dh_testdir
dh_testroot
dh_installmenu
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
Điều này thường rất sufficent cho các dự án nhỏ.