Using checkinstall
Prev
Next

Using checkinstall

checkinstall is an application used to build distribution specific packages from sources.

checkinstall DOES NOT work with cmake correctly up to this moment. :(

It can be used with additional commands in order to "work properly". Here is the procedure to follow as user (NOT as ROOT) in order to obtain the necessary distribution package.

Note

  • x.y.z-XXXXXXXX represents the version of the KBFX package, in this example it is: 0.4.9.3-20070117

  • In the example here the version string is replaced only in the checkinstall command but you have to do that everywhere the "x.y.z-XXXXXXXX" string is met.

> cd /tmp
> tar xjvf kbfx-x.y.z-XXXXXXXX.tar.bz2
> cd kbfx-x.y.z-XXXXXXXX/
> mkdir -p build/package
> cd build
> export DESTDIR=/tmp/kbfx-x.y.z-XXXXXXXX/build/package
> cmake  ../ -DCMAKE_INSTALL_PREFIX=`kde-config --prefix`
> make install DESTDIR=/tmp/kbfx-x.y.z-XXXXXXXX/build/package
> find package/|sed s#^package/#./# > installed_files.txt
> cd package/
> su
> checkinstall -nodoc --pkgname="kbfx" --pkgversion="0.4.9.3" \
--pkgrelease="20070117" --exclude="/" --include=../installed_files.txt \
--pakdir=/tmp/kbfx-0.4.9.3-20070117 sleep 1
		

When ready, "checkinstall" will show you the folder where the prepared package is, like in this Mandriva Example:

**********************************************************************

Done. The new package has been saved to

/tmp/kbfx-0.4.9.3-20070117/kbfx-0.4.9.3-20070117.i386.rpm
You can install it in your system anytime using:

rpm -i kbfx-0.4.9.3-20070117.i386.rpm

**********************************************************************
		

Of course the best way to make RPM packages is to use the "kbfx.spec" file provided in the KBFX sources like described bellow.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team