You are not logged in.
Hi, I recently made a PKGBUILD for ion-3ds, but I had problems with settings the appropriate directories, so I used the static system.mk makefile and modified it accroding to arch's guidelines. If anybody has a better idea, please feel free to share it.
PKGBUILD:
pkgname=ion3-devel
pkgver=20050116
pkgrel=1
pkgdesc="A keyboard-friendly tiling (no overlapping windows) window manager"
depends=('x-server' 'lua>=5.0.2')
source=(ion-3ds-$pkgver.tar.gz system.mk)
url="http://modeemi.fi/~tuomov/ion/"build() {
cat $startdir/system.mk | sed "s#ROOT=DUMMY#ROOT=$startdir/pkg#" > $startdir/src/ion-3ds-$pkgver/system.mk
cd $startdir/src/ion-3ds-$pkgver
make || return 1
make install
}
system.mk:
ROOT=DUMMY
PREFIX=$(ROOT)/usr# Main binaries
BINDIR=$(PREFIX)/bin
# Configuration .lua files
ETCDIR=$(ROOT)/etc/ion3
# Some .lua files and ion-* shell scripts
SHAREDIR=$(PREFIX)/share/ion3
# Manual pages
MANDIR=$(PREFIX)/man
# Some documents
DOCDIR=$(PREFIX)/share/doc/ion3
# Nothing at the moment
INCDIR=$(PREFIX)/include/ion3
# Nothing at the moment
LIBDIR=$(PREFIX)/lib
# Modules
MODULEDIR=$(LIBDIR)/ion3/mod
# Compiled Lua source code
LCDIR=$(LIBDIR)/ion3/lc
# ion-completefile (does not belong in SHAREDIR being a binary file)
EXTRABINDIR=$(LIBDIR)/ion3/bin
# For ion-completeman system-wide cache
VARDIR=/var/cache/ion3
# Message catalogs
LOCALEDIR=$(PREFIX)/share/localePRELOAD_MODULES=
DL_LIBS=-ldl
LUA_LIBS = -llua -ldl -lm -llualib
LUA_INCLUDES =
LUA=/usr/bin/lua
LUAC=/usr/bin/luac
X11_LIBS= -lSM -lICE -lX11 -L/usr/X11R6/lib -lXext
X11_INCLUDES= -I/usr/X11R6/include
XINERAMA_LIBS=-lXinerama
DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND
HAS_SYSTEM_ASPRINTF=1
CC=gcc
WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment
-Wtrigraphs -Wformat -Wchar-subscripts
-Wparentheses -pedantic -WuninitializedCFLAGS=-g -O2 $(WARN) $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
LDFLAGS= $(EXTRA_LIBS) $(LIBS)
C99_SOURCE=-DCF_HAVE_VA_COPY
DEPEND_FILE=.depend
DO_MAKE_DEPEND=$(CC) -MM $(DEFINES) $(EXTRA_INCLUDES) $(INCLUDES)
MAKE_DEPEND=$(DO_MAKE_DEPEND) $(SOURCES) > $(DEPEND_FILE)
AR=ar
ARFLAGS=cr
RANLIB=ranlib
INSTALL=/bin/install -c
INSTALLDIR=mkdir -p
BIN_MODE=755
DATA_MODE=644
STRIP=strip
RM=rm
Offline
Hi, I recently made a PKGBUILD for ion-3ds, but I had problems with settings the appropriate directories, so I used the static system.mk makefile and modified it accroding to arch's guidelines. If anybody has a better idea, please feel free to share it.
PKGBUILD:
pkgname=ion3-devel
pkgver=20050116
pkgrel=1
pkgdesc="A keyboard-friendly tiling (no overlapping windows) window manager"
depends=('x-server' 'lua>=5.0.2')
source=(ion-3ds-$pkgver.tar.gz system.mk)
url="http://modeemi.fi/~tuomov/ion/"build() {
cat $startdir/system.mk | sed "s#ROOT=DUMMY#ROOT=$startdir/pkg#" > $startdir/src/ion-3ds-$pkgver/system.mk
cd $startdir/src/ion-3ds-$pkgver
make || return 1
make install
}
I'd recommend changing your sed line in your PKGBUILD. I ran into a nasty race condition on a HT system with a PKGBUILD that did something like what you've got. Rather than 'cat | sed > output', just use sed with the -i argument and copy the file over like this:
sed -i "s#ROOT=DUMMY#ROOT=$startdir/pkg#" $startdir/system.mk
cp $startdir/system.mk $startdir/src/ion-3ds-$pkgver/system.mk
Keep up the good work!
Cheers,
farphel
Follow the link below, sign up, and accept one promotional offer. If I can get five suckers (err... friends) to do this, I'll get a free iPod. Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142
Offline
i found the same: avoid cat | sed use sed -i
Offline
I'll change that.
Any other feedback? Maybe anyone using ion3?
Offline
I'll change that.
Any other feedback? Maybe anyone using ion3?
i'll try it out tonight!
Offline
I'll change that.
Any other feedback? Maybe anyone using ion3?
It compiles fine, but when I run it, it gives me errors about not finding the drawing engines and then it bails back to X.
I'll have another look at it tommorow.
mov ah, 0
int 16h
Offline
it ran fine at my system for some time, but now I have the same problem, but I can't find the root of this problem. as a quick fix you could use the -s option, as in:
exec ion3 -s /usr/lib/ion3/lc -s /usr/lib/ion3/mod -s /etc/ion3 -s ~/.ion3
you may also want to add /usr/lib/ion3/bin for tab completion in query dialogs
Offline
it ran fine at my system for some time, but now I have the same problem, but I can't find the root of this problem. as a quick fix you could use the -s option, as in:
exec ion3 -s /usr/lib/ion3/lc -s /usr/lib/ion3/mod -s /etc/ion3 -s ~/.ion3
you may also want to add /usr/lib/ion3/bin for tab completion in query dialogs
I just happened to build the same package, but mine works fine without manually changing the Makefiles(via sed) and I'm using it right now without any problems..
So if anyone wants to give it a try:
PKGBUILD
ion-3ds-20050322-1.pkg.tar.gz
Oh, and I used a more recent version, I guess
And it has a gdm sessionfile
Offline
for me there's an error, when I try to compile the package. /bin/install tries to remove/alter some locale files. I just removed the last part with the .desktop file, but that shouldn't cause the error.
mkdir -p /home/police/projects/packages/ion3-devel/pkg/usr/share/ion3
for i in welcome.txt welcome.fi.txt welcome.cs.txt welcome.de.txt; do
/bin/install -c -m 644 $i /home/police/projects/packages/ion3-devel/pkg/usr/share/ion3 ;
done
make[1]: Leaving directory `/home/police/projects/packages/ion3-devel/src/ion-3ds-20050322/man'
make[1]: Entering directory `/home/police/projects/packages/ion3-devel/src/ion-3ds-20050322/po'
for i in fi cs de; do
mkdir -p /usr/share/locale/$i/LC_MESSAGES ;
/bin/install -c -m 644 $i.mo /usr/share/locale/$i/LC_MESSAGES/ion3.mo ;
done
/bin/install: cannot remove `/usr/share/locale/fi/LC_MESSAGES/ion3.mo': Permission denied
/bin/install: cannot remove `/usr/share/locale/cs/LC_MESSAGES/ion3.mo': Permission denied
/bin/install: cannot create regular file `/usr/share/locale/de/LC_MESSAGES/ion3.mo': Permission denied
make[1]: *** [_install] Error 1
make[1]: Leaving directory `/home/police/projects/packages/ion3-devel/src/ion-3ds-20050322/po'
make: *** [subdirs-install] Error 2
==> ERROR: Build Failed. Aborting...
Offline
for me there's an error, when I try to compile the package. /bin/install tries to remove/alter some locale files. I just removed the last part with the .desktop file, but that shouldn't cause the error.
Ah, another reason NOT to build packages as root, because I did in fact have write access to /usr/share/local and didn't get that error.. I corrected the PKGBUILD to adjust the LOCALEDIR-variable as well and it should be better now..
Offline
I have been using Ion3 for a while and it's great. I just downloaded the package and ./configure --prefix=/usr/, make make isntall and it works fine for me.
Offline
@DXManiac works now, thanks
Offline