You are not logged in.
Since I'm getting really comfortable about this distro, I decided to try the ABS way of compiling. To my surprise this was quite an easy thing to do. After a few tries I managed to create some packages, which I miss or aren't up-to-date in the arch linux database.
I made packages for
- xvid-1.0.1 (MPEG4 codec with better compression than divx)
- fbpanel (windows-like lightweight panel)
- libdts (decode dts-streams from dvd)
- leafpad (gtk notepad clone, lean and mean)
- guiTAR (gtk gui archive program)
Only fbpanel was a bit tricky: had to edit the Makefiles myself, for neither prefix and DESTDIR worked. Anyway I thought that maybe someone finds those usefull. <edit> This is fixed now see further down the page</edit>
The builds can be found here http://home.quicknet.nl/qn/prive/btwoudstra
The PKGBUILDS are here:
XVID
# $Id: PKGBUILD,v 1.7 2004/04/17 11:36:47 tobias Exp $
# Contributor: Sarah Hay <sarah@archlinux.org>
# Maintainer: roberto <roberto@archlinux.org>
# I just edited this PKGBUILD a little to get the latest xvid version, I hope Roberto doesn't mind.
pkgname=xvidcore
pkgver=1.0.1
pkgrel=1
pkgdesc="XviD is an open source MPEG-4 video codec"
url="http://www.xvid.org/"
depends=('glibc')
source=(http://files.xvid.org/downloads/$pkgname-$pkgver.tar.bz2)
md5sums=('ef8993d620e403e992cc660dbe6e3581')
build() {
mkdir -p $startdir/pkg/usr/lib $startdir/pkg/usr/include/
cd $startdir/src/$pkgname-$pkgver/build/generic
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
FBPANEL
#Contributor:frodoontop <xvid@lycos.nl>
pkgname=fbpanel
pkgver=3.8
pkgrel=1
pkgdesc="fbpanel is a lightweight X11 desktop panel"
url="http://fbpanel.sourceforge.net/"
license="GPL"
depends=('gtk2' 'xfree86')
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://heanet.dl.sourceforge.net/sourceforge/fbpanel/$pkgname-$pkgver.tgz)
md5sums=(95e43a2c201feb5e272bbd9a4f78ad6e)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
#note: this will not work, have to edit all the Makefiles by hand. (change all install prefix paths)
make prefix=$startdir/pkg/ install
}
LIBDTS
#Contributor: frodoontop <xvid@lycos.nl>
pkgname=libdts
pkgver=0.0.2
pkgrel=1
pkgdesc="libdts is a free library for decoding DTS Coherent Acoustics streams"
url="http://www.videolan.org/dtsdec.html"
license="GPL"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://download.videolan.org/pub/videolan/libdts/0.0.2/$pkgname-$pkgver.tar.gz)
md5sums=(a1c0dac95d7031498c2d19d7a3107469)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
LEAFPAD
#Contributor: frodoontop <xvid@lycos.nl>
pkgname=leafpad
pkgver=0.6.8
pkgrel=1
pkgdesc="Leafpad is a simple GTK+ based text editor"
url="http://tarot.freeshell.org/leafpad/"
license="GPL"
depends=(gtk2)
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://tarot.freeshell.org/leafpad/$pkgname-$pkgver.tar.gz)
md5sums=(f3abf9ca505f16d1f1b7c2d6ff43f7e7)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg/usr install
}
Tell me if anybody finds it usefull
Offline
There is a package called xvidcore, have you tried that?
Also, what changes did you need to do to the makefile? Could you either include them in the PKGBUILD or perhaps an install file?
Offline
There is a package called xvidcore, have you tried that?
Yes, but it's still using a release candidate. While this one is stable version 1.0.1 already.
Also, what changes did you need to do to the makefile? Could you either include them in the PKGBUILD or perhaps an install file?
As I said in the original post. Change the lines from all three Makefiles at the sections install to the prefix you'd like to use. In my case this was something like /var/abs/local/fbpanel/pkg/usr .
I'm quite new to all this, but I'll look into this install file thing.
<edit>I have looked at the .install possibilities, but as far as I can see, there isn't a way to modify the source before compiling. Only after compiling. Correct me if I'm wrong.</edit>
Offline
There is a package called xvidcore, have you tried that?
Yes, but it's still using a release candidate. While this one is stable version 1.0.1 already.
Also, what changes did you need to do to the makefile? Could you either include them in the PKGBUILD or perhaps an install file?
As I said in the original post. Change the lines from all three Makefiles at the sections install to the prefix you'd like to use. In my case this was something like /var/abs/local/fbpanel/pkg/usr .
I'm quite new to all this, but I'll look into this install file thing.
<edit>I have looked at the .install possibilities, but as far as I can see, there isn't a way to modify the source before compiling. Only after compiling. Correct me if I'm wrong.</edit>
You could use some sed scripting, I had to do that for a program I was trying to get to compile, check out the PKGBUILD at: http://bbs.archlinux.org/viewtopic.php? … highlight=
All I was doing is inserting a "0;" after a certain line in one of the source files.
Offline
Nice, I really liked leafpad - thanks
Kaleph
jabber: kaleph@jabber.org
Offline
Another way, a bit more simple that sed if you have to do a lot of change, is to do the correction then do a diff with original file, in this way you have a sort of Makefile.patch that you can apply during makepkg before compiling
Offline
I kinda feel like this is not the way to go, but am still wondering. Can't I simply change the prefix at ./configure time. This way I get identical results and no problems whatsoever about editing Makefiles.
The PKGBUILD would than become:
#Contributor:frodoontop <xvid@lycos.nl>
pkgname=fbpanel
pkgver=3.8
pkgrel=1
pkgdesc="fbpanel is a lightweight X11 desktop panel"
url="http://fbpanel.sourceforge.net/"
license="GPL"
depends=('gtk2' 'xfree86')
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://heanet.dl.sourceforge.net/sourceforge/fbpanel/$pkgname-$pkgver.tgz)
md5sums=(95e43a2c201feb5e272bbd9a4f78ad6e)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=$startdir/pkg/usr
make || return 1
make prefix=$startdir/pkg/ install
}
Offline
You can't do this:
./configure --prefix=$startdir/pkg/usr
You have to configure the source to reflect where everything will live after it's installed. This says "when installed find everything in $startdir/pkg/usr". Not true. The binary should think everything is in /usr. For example if I check the binary:
$ strings pkg/usr/bin/fbpanel |grep usr
/home/kpiche/PKGBUILDs/fbpanel/pkg/usr/share/fbpanel/images/top-right.xpm
/home/kpiche/PKGBUILDs/fbpanel/pkg/usr/share/fbpanel/images/top-left.xpm
/home/kpiche/PKGBUILDs/fbpanel/pkg/usr/share/fbpanel/images/bottom-right.xpm
/home/kpiche/PKGBUILDs/fbpanel/pkg/usr/share/fbpanel/images/bottom-left.xpm
/home/kpiche/PKGBUILDs/fbpanel/pkg/usr
$
See? It thinks its icons will be found in my home directory and not /usr/share.
Basically you have to configure it as if you were going to install it iinto normal system dirs but then trick it into installing under the $startdir/pkg directory. Unfortunately you may need to edit the Makefile using sed or a patch. It wouldn't be the first PKGBUILD that had to resort to that.
Offline
Sorry I noticed you had the proper configure in your earlier build. The following works:
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make PREFIX=$startdir/pkg/usr install
}
You just needed to find the variable the Makefile uses to install.
HTH
Offline
thanks for LEAFPAD!
Offline
You're welcome Had no idea that leafpad had some fans .
Well, since I removed Gnome and KDE I had to find a replacemet for file-roller, the archive program. After a while I found guiTAR, a simple fast frontend.
You can find it on my website, for link see first post.
The PKGBUILD:
#contributor: frodoontop<xvid@lycos.nl>
pkgname=guiTAR
pkgver=0.1.4
pkgrel=1
pkgdesc="A lightweight gtk archive program"
#I can't seem to locate the official website
url="http://linuxberg.matrix.com.br/system/preview/31620.html"
license="GPL"
depends=(gtk)
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://www.ibiblio.org/pub/Linux/utils/compress/$pkgname-$pkgver.tar.gz)
md5sums=("386c1817faf3b9e7afbb8a6f285ba5f9")
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
Offline
Sorry I noticed you had the proper configure in your earlier build. The following works:
build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr make || return 1 make PREFIX=$startdir/pkg/usr install }
You just needed to find the variable the Makefile uses to install.
HTH
Thanks a lot . Learning all the time...
Offline
r u the dev of leafpad. i mean this tool is great and so fast and light.
a bug i found: "in about it doesn't show the image instead it shows X"
and a proposal:
implement drap-n-drop before undo/redo. [ok this is imHo]
I just added it as default for text files and this is so so so so fast
thanks man!
Offline
I would love to try fbpanel anyone here got PKGBUILD to work?
Mr Green
Mr Green
Offline
Yes. His first PKGBUILD of fbpanel with my "make install" correction.
pkgname=fbpanel
pkgver=3.8
pkgrel=1
pkgdesc="fbpanel is a lightweight X11 desktop panel"
url="http://fbpanel.sourceforge.net/"
license="GPL"
depends=('gtk2' 'xfree86')
makedepends=()
conflicts=()
replaces=()
backup=()
source=(http://heanet.dl.sourceforge.net/sourceforge/fbpanel/$pkgname-$pkgver.tgz)
md5sums=(95e43a2c201feb5e272bbd9a4f78ad6e)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make PREFIX=$startdir/pkg/usr install
}
You'll have to edit /usr/share/fbpanel/default and comment out the Show* directives for it too work.
Offline
I'm not the dev of leafpad, just tend to like the program. I suggest you go to the website and make suggestions. btw, I don't have the logo problem.
For anyone interested I put a working configuration file for fbpanel on my website. I enhanced it a bit to make it a less boring default.
Offline