Documentation > Tips and Tricks

How to install gtk+

<< < (2/2)

Thierry:

--- Quote ---The documentation is badly written, very bad !!!
--- End quote ---
I will try to improve it because:

--- Quote ---And do not edit
/etc/cards.conf,
edit
/mnt/hd/etc/cards.conf
--- End quote ---
Obviously you didnt get it at all

Feel very sorry for that

Thierry

cdrw:
I want to show by example how I created the tilde text editor package for the console.I read very good documentation on the home page tilde.There are several libraries attached to the tilde.See the diagram in the picture:



I find out the sequence of dependencies:

libtranscript
libt3config
libt3window
libt3key
libt3highlight
libt3widget
tilde

Gray indicates the dependencies that you need to look for in the system or set yourself:

libpcre
libsigc++
XCB/Xlib
(n)curces
libunistring
libtranscript

I'm trying to find them in Nutyx.
I find:


--- Code: ---libpcre      = pcr          (yes, name does not match)
libsigc++    = libsigc++    (yes, name matches)
XCB/Xli      = libxcb       (yes, name does not match)
(n)curces    = ncurses      (yes, name does not match)
libunistring = libunistring (yes, name matches)

--- End code ---

Now I build a dependency tree.


--- Code: ---libtranscript    - without dependencies
libt3config      - without dependencies
libt3window      <= ncurses libunistring libtranscript
libt3key         <= libt3config libxcb ncurses
libt3highlight   <= pcre libt3config
libt3widget      <= pcre libsigc++ libt3key libxcb libunistring libt3window libtranscript
tilde            <= libt3config libt3highlight libt3widget libt3window libunistring libtranscript

--- End code ---

Further I write as root, for each package Pkgfile already with dependencies.

Tilde for one example:


--- Code: ---mkdir -p /mnt/hd/usr/ports/perso/tilde
echo '#!/bin/bash

#Depends on: libt3config libt3highlight libt3widget libt3window libunistring libtranscript
description="tilde (text editor for the console/terminal)"
packager="cdrw"
url="http://os.ghalkes.nl/tilde/index.html"

name=tilde
version=0.3.7
release=1
source=(http://os.ghalkes.nl/dist/$name-$version.tar.bz2)

build() {
   cd $name-$version
   ./configure                                    \
           --prefix=/usr                          \
           --libdir=/usr/lib                      \
           --mandir=/usr/share/man                \
           --docdir=/usr/share/doc/$name-$version
   make
   make DESTDIR=$PKG install
}' > /mnt/hd/usr/ports/perso/tilde/Pkgfile

--- End code ---

Full list Pkgfile:

libtranscript
libt3config
libt3window
libt3key
libt3highlight
libt3widget
tilde

Then I enter the chroot environment:

--- Code: ---sudo -i
install-nutyx -ec

--- End code ---

I compile the files:


--- Code: ---cards create -r libtranscript
cards create -r libt3config
cards create -r libt3window
cards create -r libt3key
cards create -r libt3highlight
cards create -r libt3widget
cards create -r tilde

--- End code ---

I come out of the chroot:


--- Code: ---exit
--- End code ---

As a simple user in the console window:


--- Code: ---cdrw [ ~ ]$ get tilde
[sudo] password for cdrw:
Retrieve info about the 520 packages: 100 %
   ADD: (perso) libtranscript 0.3.2-1, 255 files: 100 %
   ADD: (perso) libt3config 0.2.10-1, 139 files: 100 %
   ADD: (perso) libt3window 0.2.3-1, 129 files: 100 %
   ADD: (perso) libt3key 0.2.6-1, 136 files: 100 %
   ADD: (perso) libt3widget 0.5.2-1, 743 files: 100 %
   ADD: (perso) libt3highlight 0.4.2-1, 164 files: 100 %
   ADD: (perso) tilde 0.3.7-1, 14 files: 100 %

cdrw [ ~ ]$ tilde
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version