You are not logged in.

#1 2005-02-26 12:56:58

cmp
Member
Registered: 2005-01-03
Posts: 350

[NEW] ion3-devel

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/locale

PRELOAD_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 -Wuninitialized

CFLAGS=-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

#2 2005-02-26 13:11:32

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: [NEW] ion3-devel

cmp wrote:

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

#3 2005-02-27 11:19:09

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [NEW] ion3-devel

i found the same: avoid cat | sed use sed -i wink

Offline

#4 2005-02-27 12:34:31

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: [NEW] ion3-devel

I'll change that.
Any other feedback? Maybe anyone using ion3?

Offline

#5 2005-02-28 16:59:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [NEW] ion3-devel

cmp wrote:

I'll change that.
Any other feedback? Maybe anyone using ion3?

i'll try it out tonight!

Offline

#6 2005-03-01 00:21:52

corky
Member
From: Norway
Registered: 2004-12-17
Posts: 76

Re: [NEW] ion3-devel

cmp wrote:

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

#7 2005-03-01 16:57:21

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: [NEW] ion3-devel

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

#8 2005-04-02 13:02:21

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [NEW] ion3-devel

cmp wrote:

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 wink
And it has a gdm sessionfile wink

Offline

#9 2005-04-02 13:25:51

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: [NEW] ion3-devel

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

#10 2005-04-02 17:47:38

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [NEW] ion3-devel

cmp wrote:

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..

PKGBUILD
ion-3ds-20050322-2.pkg.tar.gz

Offline

#11 2005-04-03 00:27:33

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [NEW] ion3-devel

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

#12 2005-04-03 10:31:29

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: [NEW] ion3-devel

@DXManiac works now, thanks

Offline

Board footer

Powered by FluxBB