Awesome-3-Slackware

From awesome
Jump to: navigation, search

To build Awesome 3 on Slackware, you have to recompile Cairo because the version that ships with Slackware does not include xcb support. You also have to install Lua, Imlib2, xcb-util and libev. Let's see how to do this step by step, under Slackware 13:

CMake[edit]

I had to upgrade to 2.8 to make it work. If you need to upgrade, download the source, slackbuild, run it and then upgrade the package with upgradepkg command.

Cairo[edit]

Apply this patch to the Slackware's default cairo.SlackBuild (if you do not have the sources disc, retrieve this from a Slackware mirror). After applying this patch and recompiling the package, Cairo will have xcb support. In fact, this patch just adds the flag --enable-xcb when running configure.

Lua and imlib2[edit]

Install Lua and Imlib2 with the SlackBuilds.org SlackBuilds: SlackBuild for Lua, SlackBuild for Imlib2.

xcb-util and libev[edit]

I made SlackBuilds for these packages. Check my SlackBuilds repository. You can get a copy of all my SlackBuilds with this command: "hg clone http://www.bitbucket.org/jfsantos/slackbuilds/". By the way, this repository includes the patch for Cairo, too.

xcb, libstartup-notification, libxdg[edit]

In order to compile version 3.4.4 you need to upgrade these packages as well. For the first two, I grabbed the packages off of -current as they were updated enough to be used. Be warned though, that mixing -stable and -current packages is generally a bad idea. I wanted to test it out, and so far I can see no side effects from using libxcb and libstartup-notification from -current, ymmv. (Note that libxcb is in mirror/x/X11/lib). As for libxdg, I found a slackbuild from vector linux that seemed to work (with some slight edits). Here it is

Awesome[edit]

I also made a SlackBuild for Awesome. Just build it after installing all the above dependencies and install it. The package built by this SlackBuild also adds Awesome to the xwmconfig menu, so just select it and startx :)