Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 30 Oct 2014, 12:21
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
How to compile urxvt? (and make it small!)
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 02 Sep 2011, 13:29    Post_subject:  

Here's my build script, produces a ~95 KB package. Cool

Code:
#!/bin/sh

PKG_NAME="rxvt-unicode"
PKG_VER="9.12"
PKG_REV="1"
PKG_DESC="Terminal emulator"
PKG_CAT="Utility"
PKG_DEPS=""

download() {
   # download the sources
   wget http://dist.schmorp.de/rxvt-unicode/$PKG_NAME-$PKG_VER.tar.bz2
   [ $? -ne 0 ] && return 1
   return 0
}

build() {
   # extract the sources
   tar -xjvf $PKG_NAME-$PKG_VER.tar.bz2
   [ $? -ne 0 ] && return 1

   cd $PKG_NAME-$PKG_VER   

      # configure the package
   CXXFLAGS="$CXXFLAGS" ./configure \
                                  $BASE_CONFIGURE_ARGS \
                                  --prefix=/usr \
                                  --with-terminfo=/usr/share/terminfo \
                                  --disable-256-color \
                                  --disable-unicode3 \
                                  --disable-xft \
                                  --disable-font-styles \
                                  --disable-afterimage \
                                  --disable-pixbuf \
                                  --disable-transparency \
                                  --disable-fading \
                                  --disable-rxvt-scroll \
                                  --enable-next-scroll \
                                  --disable-xterm-scroll \
                                  --disable-perl \
                                  --disable-xim \
                                  --enable-backspace-key \
                                  --enable-delete-key \
                                  --disable-resources \
                                  --disable-swapscreen \
                                  --disable-iso14755 \
                                  --disable-frills \
                                  --enable-keepscrolling \
                                  --enable-selectionscrolling \
                                  --enable-mousewheel \
                                  --disable-slipwheeling \
                                  --disable-smart-resize \
                                  --disable-text-blink \
                                  --disable-pointer-blank \
                                  --disable-utmp \
                                     --disable-wtmp \
                                     --disable-lastlog \
                                     --with-codesets="" \
                                     --disable-combining \
                                     --disable-assert \
                                                             
   [ $? -ne 0 ] && return 1
     
   # build the package
   make -j $BUILD_THREADS
   [ $? -ne 0 ] && return 1

   return 0
}

package() {   
   # install the package
   make DESTDIR=$INSTALL_DIR install
   [ $? -ne 0 ] && return 1

   # create a symlink for compatibility with existing stuff that rely on rxvt
   ln -s urxvt $INSTALL_DIR/usr/bin/rxvt

   # remove urxvtc and urxvtd
   rm -f $INSTALL_DIR/usr/bin/urxvtc $INSTALL_DIR/usr/bin/urxvtd
      
   # create a menu entry
   mkdir -p $INSTALL_DIR/usr/share/applications
   echo '[Desktop Entry]
Encoding=UTF-8
Name=Rxvt-unicode terminal emulator
Icon=mini-term.xpm
Comment=Rxvt-unicode terminal emulator
Exec=urxvt
Terminal=false
Type=Application
Categories=Utility;TerminalEmulator;
GenericName=Rxvt-unicode terminal emulator' > $INSTALL_DIR/usr/share/applications/rxvt-unicode.desktop
   chmod 644 $INSTALL_DIR/usr/share/applications/rxvt-unicode.desktop

   return 0
}

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Mon 05 Sep 2011, 08:13    Post_subject:  

Thanks Igu, I alrady checked that one out, remembered it was in your build script thingy...

Does anyone have the following problem with urxvt?

When I use 'urxvt -e command' the terminal window pens for a second then exits...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Mon 05 Sep 2011, 08:15    Post_subject:  

sc0ttman wrote:
Thanks Igu, I alrady checked that one out, remembered it was in your build script thingy...

Does anyone have the following problem with urxvt?

When I use 'urxvt -e command' the terminal window opens for a second then exits...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Ibidem

Joined: 25 May 2010
Posts: 502
Location: State of Jefferson

PostPosted: Sat 12 May 2012, 12:38    Post_subject: Necromancy ftw!  

I know the thread is old, but an answer late can still help someone...

urxvt -e command
will exit as soon as the command does unless you use -hold as well.

CFLAGS won't work, it uses CXXFLAGS (as do most C++ programs).
For configure, you must specify them before running configure.
so CXXFLAGS=... ./configure
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4268
Location: Gatineau (Qc), Canada

PostPosted: Sun 13 May 2012, 05:20    Post_subject:  

Hi, people.

mrxvt's tab-capacity is indeed interesting, but since it doesn't support utf-8 localizations, and on purpose, too -- so any accented character used in it will be deformed to gibberish.

Unless somebody knows a good workaround, after all the trouble the new localization packages gave us, it would be counter-productive to use mrxvt AND a utf-8 localization in Puppy.

Conversely, urxvt can be made tab-abled, through the perl patch, but problem is: how to set the urxvt perl patch in Puppy.

Or we can dump those two and the headaches they create, and use ROX terminal instead (which supports tabs AND utf-Cool.

That said, I still like the flexibility in shading that urxvt offers, especially if you add the title/border control in icewm's winoptions. You can sort of color-code urxvt for various tasks.

Just my 2 cents.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4268
Location: Gatineau (Qc), Canada

PostPosted: Sun 13 May 2012, 05:26    Post_subject:  

to iguleder:

What's the point of maiming a good program ???!!!
Code:

    --prefix=/usr \
                                   --with-terminfo=/usr/share/terminfo \
                                   --disable-256-color \
                                   --disable-unicode3 \
                                   --disable-xft \
                                   --disable-font-styles \
                                   --disable-afterimage \
                                   --disable-pixbuf \
                                   --disable-transparency \
                                   --disable-fading \
                                   --disable-rxvt-scroll \
                                   --enable-next-scroll \
                                   --disable-xterm-scroll \
                                   --disable-perl \
                                   --disable-xim \
                                   --enable-backspace-key \
                                   --enable-delete-key \
                                   --disable-resources \
                                   --disable-swapscreen \
                                   --disable-iso14755 \
                                   --disable-frills \
                                   --enable-keepscrolling \
                                   --enable-selectionscrolling \
                                   --enable-mousewheel \
                                   --disable-slipwheeling \
                                   --disable-smart-resize \
                                   --disable-text-blink \
                                   --disable-pointer-blank \
                                   --disable-utmp \
                                      --disable-wtmp \
                                      --disable-lastlog \
                                      --with-codesets="" \
                                      --disable-combining \
                                      --disable-assert \

Might as well stick with the old rxvt! (hehe) Twisted Evil Rolling Eyes

Sorry for the comment. Couldn't help it!

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0917s ][ Queries: 12 (0.0114s) ][ GZIP on ]