oh my god, they killed lucid!

Checkinstall DEBs done the CMake way...

CMake can by default build binary packages in DEB, RPM, EXE... Using the all famous CPack (yeah right, you probably never heared of it ;-))


Making use of CPack is in most cases actually quite easy and just involves a bit of copy and paste.
Lets use rekonq as example:
First you'll need to get the source from kde-apps and extract it, then edit the CMakeLists.txt file in the main directory and add the following at the very end:
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
SET(CPACK_SET_DESTDIR TRUE)
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "me")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "1~alpha1")
include(CPack)
You can use this portion for about every application, though you might want to change the VERSION parts accordingly ;-)
Once you are done editing, just continue with the normal build process (i.e. mkdir build; cd build; cmake ..; make). When/If make finishes just run cpack or make package. If everything went well this should place rekonq-0.0.1~alpha1-Linux.deb in the build directory, waiting for you to install it.

Disclaimer: This package does, just like a checkinstall created one, not list dependencies, nor does it meet all requirements of a sensible debian package and thus should not be distributed. So, if you create a package using CPack, don't distribute them, it might very well cause problems for the people who want to use it. Instead I'd recommend to learn packaging, neither debian packaging nor RPM packaging are difficult to learn (mastering them takes a live time though, or so I have been told ;-)).

Also note that it is indeed possible to create sensible packages using CPack (after all that is it's primary usecase), it requires a bit more work than just adding the lines listed above though.

Saturday, May 02, 2009

9 Comments:

Götz said...

In Debian it is/was so complicated to do packages, with so many users/developers in Debian, why?

After a time using some linux ditros I have found the easiest way to do packages!

And it is using "makepkg" with a PKGBUILD file. Of course this is not in Debian. It is in Arch Linux, no more complications. But Arch is not so a famous distro. But the found a easy way to do this.

apachelogger said...

I can tell you, Debian packaging can be as easy as, just that you have more files than just one single pkgbuild file. But I agree, debian packaging can be seriuosly complex, but this is due to year long experience in running into limitations and thus constant enhancements of dpkg's capabilities. But creating packages for short-term distribution, while for example debian didn't add the software to the repos, is really no more work than doing the same for arch.

J&D said...

米蘭情趣用品,情趣用品,情趣,飛機杯,自慰套,充氣娃娃,AV女優.按摩棒,跳蛋,潤滑液,角色扮演,情趣內衣,自慰器,穿戴蝴蝶,變頻跳蛋,無線跳蛋,電動按摩棒,情趣按摩棒
辣妹視訊,美女視訊,視訊交友網,視訊聊天室,視訊交友,視訊美女,免費視訊,免費視訊聊天,視訊交友90739,免費視訊聊天室,成人聊天室,視訊聊天,視訊交友aooyy
哈啦聊天室,辣妺視訊,A片,色情A片,視訊,080視訊聊天室,視訊美女34c,視訊情人高雄網,視訊交友高雄網,0204貼圖區,sex520免費影片,情色貼圖,視訊ukiss,視訊ggoo,視訊美女ggoo
080苗栗人聊天室,080中部人聊天室ut,ut影音視訊聊天室13077,視訊做愛,kk777視訊俱樂部,上班族聊天室,聊天室找一夜,情色交友,情色貼片

aelina said...

Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog? Please come visit my site Yellow Pages Iowa when you got time.

aelina said...

I usually don’t leave comments!!! Trust me! But I liked your blog…especially this post! Would you mind terribly if I put up a backlink from my site to your site? Please come visit my site Kansas Business Listing
when you got time.

Maical clark said...

I can see that you are putting a lot of time and effort into your blog and detailed articles! I am deeply in love with every single piece of information you post here. Will be back often to read more updates! Please come visit my site Long Term Care Insurance when you got time.

Maical clark said...

You do have a point here :) I admire the stuff you post and the quality information you offer in your blog! Keep up the good work dude. Please come visit my site Firefighting Training and give me any valuable feedbacks.

eda said...

情趣按摩棒,自慰套,角色扮演,按摩棒,跳蛋,跳蛋,
情趣,性感丁字褲,情趣,角色扮演服,吊帶襪,丁字褲,情趣用品,跳蛋,男女,
潤滑液,SM,內衣,性感內衣,自慰器,充氣娃娃,AV,
按摩棒,電動按摩棒,飛機杯,視訊,自慰套,自慰套,情趣用品,情趣內衣,
.,

酒店上班請找艾葳 said...

艾葳酒店經紀公司提供專業的酒店經紀, 飯局小姐,領檯人員,領台,傳播妹,或者想要到台北酒店林森北路酒店,私人招待所,或者八大行業酒店PT,酒店公關,酒店兼職,想去酒店上班, 日式酒店,制服酒店,ktv酒店,禮服店,整天穿得水水漂漂的禮服酒店,鋼琴酒吧酒店領檯,酒店小姐,公關小姐??,還是想去制服店上班小姐,水水們如果想要擁有打工工作、晚上兼差工作兼差打工假日兼職兼職工作學生兼差兼差打工兼差日領工作晚上兼差工作酒店工作酒店上班酒店打工兼職兼差兼差工作酒店上班等,想了解酒店相關工作特種行業內容,想找打工假日兼職兼差打工、或晚班兼職想擁有快速賺錢又有保障的工作嗎???又可以現領請找專業又有保障的艾葳酒店經紀公司!

艾葳酒店經紀是合法的公司工作環境高雅時尚,無業績壓力,無脫秀無喝酒壓力,高層次會員制客源,工作輕鬆,可日領現領
一般的酒店經紀只會在水水們第一次上班和領薪水時出現而已,對水水們的上班安全一點保障都沒有!艾葳酒店經紀公司的水水們上班時全程媽咪作陪,不需擔心!只提供最優質的酒店打工,酒店上班,酒店打工環境、上班條件給水水們。心動嗎!? 趕快來填寫你的酒店上班履歷表

水水們妳有缺現金、有卡債缺錢卡奴的煩腦嗎?想到日本留學日本打工嗎?妳是工讀生找工作??想要擁有高時薪又輕鬆的夜間兼職工作,打工機會和,假日打工,兼職工作日領假日打工的機會嗎??想實現夢想卻又缺錢沒錢嗎!??整天還在煩腦如何賺錢有什麼賺錢方法,和賺錢最快方法!?,想要打工,日領工作,短期打工,兼差工作,打工兼差工作嗎!?,
請加入我們艾葳酒店經紀公司工作單純輕鬆”高時薪”又可日領徵想要當傳播妹,上班小姐,酒店兼差,酒店兼職,歡迎學生打工,!!!
加入我們實現夢想就從現在開始^__^