You are not logged in.

#1 2006-04-29 20:26:12

Saturnus
Member
Registered: 2005-07-24
Posts: 20

How to compile kbfx-0.4.9.1 on Arch

Hi, evrybody.

There's a typo in kbfx-0.4.9.1 that makes it hard to make a working PKGBUILD. I'm no expert in making PKGBUILDS, but this is how I got it working.

1. Download the source. For example from: http://heanet.dl.sourceforge.net/source … .1.tar.bz2
or another mirror.

2. Uncompress the file.

3. There's a typo in the source that makes ./configure complain about wrong version of automake.

*** YOU'RE USING automake (GNU automake) 1.9.6.
*** KDE requires automake 1.6

To fix this open admin/cvs.sh
and find line 67...

automake*1.6.* | automake*1.7* | automake*1.8.* | automake*.1.9.* ) : ;;

remove the '.' in front of '1.9*)' to make it:

automake*1.6.* | automake*1.7* | automake*1.8.* | automake*1.9.* ) : ;;

4. Open kbfxconfigapp/Makefile.am and find:

kbfxconfigapp_LDADD = $(LIB_KIO) $(LIB_KHTML)

replace $(KIO_LIB) with -L/opt/kde3/lib/ -lkio

kbfxconfigapp_LDADD = -L/opt/kde/lib/ -lkio $(LIB_KHTML)

5. compress the source again.

6. Make the package using this PKGBUILD (based on dtw's)

pkgname="kdeimprov-kbfx"
pkgver=0.4.9.1
pkgrel=1
pkgdesc="a KDE improvement"
url="http://www.linuxlots.com/~siraj/kde/plugin/home/"
depends=('kdebase')
makedepends=()
source=(http://heanet.dl.sourceforge.net/sourceforge/kbfx/kbfx-0.4.9.1.tar.bz2)
md5sums=('142a29658f4a11e0e9d9b8cfbe7a3716')

build() {
  cd $startdir/src/kbfx-$pkgver
  make -f Makefile.cvs
  ./configure --prefix=/opt/kde
  make || 1
  make DESTDIR=$startdir/pkg/ install
}

You might have to change the md5sums value to fit your own edited and compressed source.

Offline

#2 2006-04-29 20:29:38

Saturnus
Member
Registered: 2005-07-24
Posts: 20

Re: How to compile kbfx-0.4.9.1 on Arch

If anybody know what command to use to edit the sourcefiles with the PKGBUILD it would be greatly appreciated as kbfx-0.4.9.1 could them be downloaded, edited and compiled with just running a simple makepkg.

Offline

#3 2006-04-30 08:18:14

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 360

Re: How to compile kbfx-0.4.9.1 on Arch

Why not make a diff?
FYI(Brought by nk-zh from Linuxsir.org):

pkgname="kdeimprov-kbfx"
pkgver=0.4.9.1
pkgrel=1
pkgdesc="a KDE improvement"
url="www.kbfx.org"
depends=('kdebase')
makedepends=()
source=(http://easynews.dl.sourceforge.net/s....4.9.1.tar.bz2 automake_patch.diff kbfx-0.4.9-kio.patch)
#md5sums=('3d0bad1a2fc8fb870e3ec83629526806')

build() {
  cd $startdir/src/kbfx-$pkgver 
 patch -Np1 -i ../automake_patch.diff
 patch -Np1 -i ../kbfx-0.4.9-kio.patch
 make -f Makefile.cvs
  ./configure --prefix=/opt/kde
  make || return 1
  make DESTDIR=$startdir/pkg/ install
}

automake_patch.diff:

--- old/admin/cvs.sh    2005-02-18 03:45:07.000000000 +0100
+++ new/admin/cvs.sh    2005-05-29 22:22:27.000000000 +0200
@@ -77,7 +77,7 @@
   * )
     echo "*** YOU'RE USING $AUTOMAKE_STRING."
     echo "*** KDE requires automake 1.6"
-    exit 1
+    #exit 1
     ;;
 esac
 }


kbfx-0.4.9-kio.patch:

--- kbfx-0.4.9.1/kbfxconfigapp/Makefile.am.orig    2006-04-14 02:22:18.000000000 +0000
+++ kbfx-0.4.9.1/kbfxconfigapp/Makefile.am    2006-04-15 16:13:28.420504832 +0000
@@ -2,7 +2,7 @@
 bin_PROGRAMS = kbfxconfigapp
 
 kbfxconfigapp_SOURCES = main.cpp mainwin.cpp kbfxconfig.cpp 
-kbfxconfigapp_LDADD = $(LIB_KIO) $(LIB_KHTML)
+kbfxconfigapp_LDADD = -L/opt/kde/lib/ -lkio $(LIB_KHTML)
 kbfxconfigapp_LDFLAGS = $(all_libraties) $(KDE_RPATH)
 
 AM_CPPFLAGS = $(all_includes)

Offline

#4 2006-04-30 09:40:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to compile kbfx-0.4.9.1 on Arch

I'd do it with a couple of seds:

sed -i 's|automake*.1.9|automake*1.9|' admin/cvs.sh
sed -i 's|$(LIB_KIO)|-L/opt/kde3/lib/ -lkio|' kbfxconfigapp/Makefile.am

Offline

#5 2006-06-25 00:07:20

maartenfabre
Member
Registered: 2005-06-28
Posts: 5

Re: How to compile kbfx-0.4.9.1 on Arch

this is the PKGBUILD i used

pkgname="kdeimprov-kbfx"
pkgver=0.4.9.1
pkgrel=1
pkgdesc="a KDE improvement"
url="http://www.linuxlots.com/~siraj/kde/plugin/home/"
depends=('kdebase')
makedepends=()
source=(http://heanet.dl.sourceforge.net/sourceforge/kbfx/kbfx-0.4.9.1.tar.bz2)

build() {
          cd $startdir/src/kbfx-$pkgver
          sed -i 's|automake*.1.9|automake*1.9|' admin/cvs.sh
          sed -i 's|$(LIB_KIO)|-L/opt/kde/lib/ -lkio|' kbfxconfigapp/Makefile.am
          make -f Makefile.cvs
          ./configure --prefix=/opt/kde
          make || 1
          make DESTDIR=$startdir/pkg/ install
          }

sed -i 's|automake*.1.9|automake*1.9|' admin/cvs.sh
sed -i 's|$(LIB_KIO)|-L/opt/kde3/lib/ -lkio|' kbfxconfigapp/Makefile.am

you made a typo/error there it should be /opt/kde instead of /opt/kde3

Offline

Board footer

Powered by FluxBB