#!/bin/sh

. ./_kde3set.sh

rm -fr /opt/trinity-$TRINITYVER
mkdir -pv /opt/trinity-$TRINITYVER
ln -sf trinity-$TRINITYVER /opt/trinity

mkdir -pv /opt/trinity/{bin,share/man,lib/pkgconfig}

echo "/opt/trinity/lib" >> /etc/ld.so.conf
ldconfig

cat > /etc/profile.d/extrapaths.sh << "EOF"

pathprepend /opt/trinity/bin                   PATH
pathappend  /opt/trinity/share/man             MANPATH
pathappend  /opt/trinity/lib/pkgconfig         PKG_CONFIG_PATH
EOF

source /etc/profile

