You are not logged in.
Enjoy
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=xplore
pkgver=1.2a
pkgrel=1
pkgdesc="A Powerful Explorer-Like Motif File Manager"
url="http://www.musikwissenschaft.uni-mainz.de/~ag/xplore/"
license="GPL"
depends=('lesstif' 'bash')
makedepends=(sed)
source=(http://www.musikwissenschaft.uni-mainz.de/~ag/xplore/$pkgname-$pkgver.tar.bz2)
md5sums=(129e90bec30a6197bc315eb75e130b1f)
build() {
cd $startdir/src/$pkgname-$pkgver
xmkmf -a
# Patching code:
SCRIPT=$(echo "s=extern char *malloc()=/*extern char *malloc()*/=")
sed -e "$SCRIPT" < regexp/regexp.c > regexp/regexp.c.tmp
mv regexp/regexp.c.tmp regexp/regexp.c
SCRIPT=$(echo "s/err:/err:continue;/")
sed -e "$SCRIPT" < ftype.c > ftype.c.tmp
mv ftype.c.tmp ftype.c
# Configuring Makefile:
SCRIPT=$(echo "s=SHLIBDIR = /usr/X11R6/lib=SHLIBDIR = ${startdir}/pkg/usr/X11R6/lib=;s=LIBDIR = /usr/X11R6/lib/X11=LIBDIR = ${startdir}/pkg/usr/X11R6/lib/X11=;s=XTOP = $(TOP)=XTOP = /usr/X11R6=;s=ETCX11DIR = /etc/X11=ETCX11DIR = ${startdir}/pkg/etc/X11=;s=BINDIR = /usr/X11R6/bin=BINDIR = ${startdir}/pkg/usr/X11R6/bin=;s=$${RELPATH}=/usr/X11R6/lib/X11=")
sed -e "$SCRIPT" < Makefile > Makefile.tmp
mv Makefile.tmp Makefile
make || return 1
# Configuring scripts/Makefile:
SCRIPT=$(echo "s=LIBDIR = /usr/X11R6/lib/X11=LIBDIR = ${startdir}/pkg/usr/X11R6/lib/X11=")
sed -e "$SCRIPT" < scripts/Makefile > scripts/Makefile.tmp
mv scripts/Makefile.tmp scripts/Makefile
make prefix=$startdir/pkg/usr install
}
Offline
I just found out that there is a bug which popped up while I upgraded xorg.
The above PKGBUILD creates a /usr/X11R6/lib/X11/app-defaults directory while it is suppose to be a symlink to /etc/X11/app-default. I will correct that over the week-end and will post the modified PKGBUILD.
Offline
I haven't been able to reproduce the bug. Everything looks OK. :? I guess that the above PKGBUILD is correct. If you have problems, let me know.
Offline