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 Mon 20 Oct 2014, 22:57
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 [21 Posts]   Goto page: Previous 1, 2
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1922
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 poster's website MSN Messenger 
ICQ Number 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
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: 2385
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: 501
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: 4254
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 poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4254
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 poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [21 Posts]   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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0848s ][ Queries: 11 (0.0050s) ][ GZIP on ]