tar zxvf clutter-box2d-0.8.0.tar.gz
cd clutter-box2d-0.8.0
dh_make -e qustion@gmail.com --createorig#選library
cd debian
rm cron.d.ex dirs emacsen-* init.d.* manpage.* menu.ex watch.ex README.Debian *.EX *.dirs *.ex
#利用以下指令決定"Build-Depends:"
#!/bin/sh#edit control file
strace -f -o /tmp/log ./configure
for x in `dpkg -S $(grep open /tmp/log|\
perl -pe 's!.* open\(\"([^\"]*).*!$1!' |\
grep "^/"| sort | uniq|\
grep -v "^\(/tmp\|/dev\|/proc\)" ) 2>/dev/null|\
cut -f1 -d":"| sort | uniq`; \
do \
echo -n "$x (>=" `dpkg -s $x|grep ^Version|cut -f2 -d":"` "), "; \
done
Source: clutter-box2d
Priority: extra
Maintainer: qustion liao
Build-Depends: debhelper (>= 7), libcairo2-dev (>= 1.6.4-1+b1), libclutter-0.8-dev, cdbs
Section: libs
Package: libclutter-box2d-0.8.0-dev
Section: libdevel
Architecture: any
Depends: libclutter-box2d-0.8.0 (= ${binary:Version}), pkg-config, libcairo2-dev, libclutter-0.8-dev
Description:
Package: libclutter-box2d-0.8.0
Section: libs
Architecture: any
Depends: ${shlibs:Depends}
Description:
#install file內容可以看debian/tmp下的內容決定
#creat libclutter-box2d-0.8.0.install
debian/tmp/usr/lib/lib*.so.*
#create libclutter-box2d-0.8.0-dev.install
debian/tmp/usr/include/clutter-0.8/*
debian/tmp/usr/lib/lib*.so
debian/tmp/usr/lib/pkgconfig/*
debian/tmp/usr/lib/*.la
#若source code包內有examples,則creat examples file "libclutter-box2d-0.8.0-dev.examples"
examples/*.c
examples/*.h
#修改rules中的"binary-arch:"內容成
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs -s
dh_installdocs -s
dh_installexamples -s
dh_install -s
dh_link -s
dh_strip -s
dh_compress -s
dh_fixperms -s
dh_shlibdeps -s
dh_md5sums -s
dh_gencontrol -s
dh_builddeb -s
dpkg-buildpackage -rfakeroot -us -uc -d
沒有留言:
張貼留言