You are not logged in.

#1 2012-01-04 08:04:17

bahman
Member
Registered: 2011-04-11
Posts: 17
Website

Pacman frontend in Java - Howto interact with alpm

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 database
2.  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 and bugs of such a process.  Is there any other way?

I'd appreciate any idea/hint.  TIA,

--
Bahman

Offline

#2 2012-01-04 09:53:49

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: Pacman frontend in Java - Howto interact with alpm

Offline

#3 2012-01-04 10:03:15

bahman
Member
Registered: 2011-04-11
Posts: 17
Website

Re: Pacman frontend in Java - Howto interact with alpm

Thanks.  Though I already knew about JNA.  I was looking for a simpler solution :-)

Offline

#4 2012-01-04 10:08:14

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: Pacman frontend in Java - Howto interact with alpm

If you have some success creating jni bindings to libalpm you might consider creating an AUR package to join the lua, perl and python packages that are there now.

Offline

Board footer

Powered by FluxBB