summaryrefslogtreecommitdiff
path: root/system/rxvt-unicode/rxvt-unicode.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/rxvt-unicode/rxvt-unicode.SlackBuild')
-rw-r--r--system/rxvt-unicode/rxvt-unicode.SlackBuild27
1 files changed, 22 insertions, 5 deletions
diff --git a/system/rxvt-unicode/rxvt-unicode.SlackBuild b/system/rxvt-unicode/rxvt-unicode.SlackBuild
index c01f2ebd69..90bb5a5e95 100644
--- a/system/rxvt-unicode/rxvt-unicode.SlackBuild
+++ b/system/rxvt-unicode/rxvt-unicode.SlackBuild
@@ -2,7 +2,6 @@
# Slackware build script for rxvt-unicode
-# Written by Dugan Chen (dugan_c@fastmail.fm)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,12 +21,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Maintained by LEVAI Daniel, 2010-2014
-# Maintained by Glenn Becker, 2015-
+# Currently maintained by Glenn Becker (glenn.becker@gmail.com)
+# Updates by Kevin Paulus, aka "goarilla" (goarilla@gmail.com)
+# Previously maintained by LEVAI Daniel, 2010-2014
+# Initial SlackBuild written by Dugan Chen (dugan_c@fastmail.fm)
PRGNAM=rxvt-unicode
VERSION=${VERSION:-9.21}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,7 +71,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Option to enable/disable the embedded perl interpreter
CONFIG_PERL=${CONFIG_PERL:-YES}
@@ -136,4 +137,20 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
+
+# Fix usr/bin/urxvt permissions to enable writing to utmp and wtmp files
+#
+version="$(echo "$VERSION" |sed -e 's/[^0-9]//g')"
+if [ "$version" -le 921 ]; then
+ # standalone
+ chgrp utmp usr/bin/urxvt
+ chmod 2755 usr/bin/urxvt
+ # client
+ chgrp utmp usr/bin/urxvtc
+ chmod 2755 usr/bin/urxvtc
+ # server
+ chgrp utmp usr/bin/urxvtd
+ chmod 2755 usr/bin/urxvtd
+fi
+
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}