How to compile urxvt? (and make it small!)

discuss compiling applications for Puppy
Message
Author
User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#16 Post by Iguleder »

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

Code: Select all

#!/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
}
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#17 Post by sc0ttman »

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...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#18 Post by sc0ttman »

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...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

Necromancy ftw!

#19 Post by Ibidem »

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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#20 Post by musher0 »

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

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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#21 Post by musher0 »

to iguleder:

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

Code: Select all

    --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: :roll:

Sorry for the comment. Couldn't help it!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply