BasKet is a powerful and fully-featured notes-taking application for KDE3, and there are also plans to port it to KDE4 (read about it here). The current version included in Debian Lenny's repositories is 1.0.2, however the last stable release is 126.96.36.199, so if you want to compile it from source, all you have to do is:
1. Make sure you have sources repositories enabled
Edit your /etc/apt/sources.list file and make sure you have a line similar with the one below:
deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free
2. Install the needed dependencies
Use apt-get build-dep as root to install BasKet's dependencies:
apt-get build-dep basket
3. Download the source
Get the source tarball for the latest BasKet release from the official homepage.
4. Compile and install
Uncompress the tarball, change the current working to basket-188.8.131.52 (or whatever version you may have), and issue the usual:
The last one as root. BasKet should be now properly installed.
I recently wrote a full review of BasKet, you can read it here.