summaryrefslogtreecommitdiffstats
path: root/rxvt-unicode
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-06-09 12:36:15 +0000
committer Eric Hameleers <alien@slackware.com>2009-06-09 12:36:15 +0000
commitea87b356f071862aa2a3ac24ee016ed8ea8e1169 (patch)
tree1994128e14ce436bfeb99e4af4839ea0e6710952 /rxvt-unicode
parent9c5157fffc90809589b578f71067f72bbb75aa4b (diff)
downloadasb-ea87b356f071862aa2a3ac24ee016ed8ea8e1169.tar.gz
asb-ea87b356f071862aa2a3ac24ee016ed8ea8e1169.tar.xz
Final version
Diffstat (limited to 'rxvt-unicode')
-rwxr-xr-xrxvt-unicode/build/rxvt-unicode.SlackBuild56
1 files changed, 49 insertions, 7 deletions
diff --git a/rxvt-unicode/build/rxvt-unicode.SlackBuild b/rxvt-unicode/build/rxvt-unicode.SlackBuild
index 3a711edb..9df4ba43 100755
--- a/rxvt-unicode/build/rxvt-unicode.SlackBuild
+++ b/rxvt-unicode/build/rxvt-unicode.SlackBuild
@@ -38,7 +38,8 @@
# "rxvt-unicode: unknown terminal type", install the .terminfo file
# by running "tic /usr/doc/rxvt-unicode-7.9/rxvt-unicode.terminfo"
# 9.06-1: 09/jun/2009 by Eric Hameleers <alien@slackware.com>
-# * Update
+# * Update. Enable a lot more functionality, add a desktop file,
+# install the terminfo file in the package.
#
# Run 'sh rxvt-unicode.SlackBuild' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -135,7 +136,7 @@ echo "++"
cd $TMP/tmp-$PRGNAM
echo "Extracting the source archive(s) for $PRGNAM..."
-tar -xvf $SRCDIR/${SOURCE}
+tar -xvf ${SOURCE}
cd ${PRGNAM}-${VERSION}
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -149,12 +150,53 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--sysconfdir=/etc \
+ --with-terminfo=/usr/share/terminfo \
+ --disable-perl \
+ --enable-everything \
+ --enable-unicode3 \
+ --enable-combining \
+ --enable-xft \
+ --enable-font-styles \
+ --enable-rxvt-scroll \
+ --enable-xim \
+ --enable-keepscrolling \
+ --enable-selectionscrolling \
+ --enable-mousewheel \
+ --enable-slipwheeling \
+ --enable-smart-resize \
+ --enable-text-blink \
+ --enable-utmp \
+ --enable-wtmp \
+ --enable-lastlog \
--program-prefix= \
--program-suffix= \
- $ARCH-slackware-linux \
- 2>&1 | tee $CWD/configure-${PRGNAM}.log
-make 2>&1 | tee $CWD/make-${PRGNAM}.log
-make DESTDIR=$PKG install 2>&1 |tee $CWD/install-${PRGNAM}.log
+ --build=$ARCH-slackware-linux \
+ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
+make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
+
+ make install DESTDIR=$PKG 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
+
+# Install the desktop file:
+mkdir -p $PKG/usr/share/applications
+cp -a $SRCDIR/$PRGNAM.desktop $PKG/usr/share/applications/
+
+# Touch an empty terminfo file so that the installed version will be removed
+# along with the rest by removepkg:
+mkdir -p $PKG/usr/share/terminfo/r
+touch $PKG/usr/share/terminfo/r/rxvt-unicode
+
+# Add this to the doinst.sh:
+mkdir -p $PKG/install
+cat <<EOINS >> $PKG/install/doinst.sh
+# Install the terminfo file into the package:
+chroot . tic usr/doc/$PRGNAM-$VERSION/rxvt-unicode.terminfo
+
+# Update the desktop database:
+if [ -x usr/bin/update-desktop-database ]; then
+ chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1
+fi
+
+EOINS
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -184,7 +226,7 @@ cat $SRCDIR/slack-desc > $PKG/install/slack-desc
# Build the package:
cd $PKG
-/sbin/makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $CWD/makepkg-${PRGNAM}.log
+/sbin/makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5
cd -