Pacman frontend in Java - Howto interact with alpm

view full story

https://bbs.archlinux.org – I plan to write a(nother :-) ) GUI frontend to Pacman using Java + Swing.  However I need some advice regarding how should I interact with Pacman.Basically my requirements are:1.  Reading/Searching package database2.  Showing a download progress bar 3.  Showing a progress bar when Pacman is installing/removing package(s)As 'alpm' is a C library it's not easily accessible from Java.  The only and perhaps dummest solution that I can think of is to write my own pseudo-alpm library to handle the requirements but I'd seriously rather avoid the re-work an (HowTos)