diff options
-rwxr-xr-x | media/sound/pd/pd.SlackBuild | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/media/sound/pd/pd.SlackBuild b/media/sound/pd/pd.SlackBuild index 18d5ce52..57a2ce27 100755 --- a/media/sound/pd/pd.SlackBuild +++ b/media/sound/pd/pd.SlackBuild @@ -176,47 +176,12 @@ pd: pd: EODESC -# Add a post-installation script (doinst.sh) -cat << EOSCRIPT > "$PKG/install/doinst.sh" -config() { - NEW="\$1" - OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r \$OLD ]; then - mv \$NEW \$OLD - elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then - # toss the redundant copy - rm \$NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -mkgroup() { - GROUP="\$1" - if ! grep -qe "^\$GROUP:" etc/group; then - echo Creating group \$GROUP... - chroot . /usr/sbin/groupadd \$GROUP - fi -} - -mkuser() { - USER="\$1" - if [ ! -z "\$2" ]; then - GROUP="\$2" - else - GROUP="\$USER" - fi - if ! grep -qe "^\$USER:" etc/passwd; then - echo Creating user \$USER... - chroot . /usr/sbin/useradd \$USER -g \$GROUP - fi -} - -ln -sf /usr/lib64/pd/bin/pd-gui usr/bin/pd-gui ; ln -sf /usr/bin/pd usr/lib64/pd//bin/pd ; ln -sf /usr/lib64/pd/bin/pd.tk usr/bin/pd.tk ; ln -s /usr/lib64/pd/bin/pd-watchdog usr/bin/pd-watchdog -EOSCRIPT - # Build the package cd "$PKG" +ln -s usr/lib64/pd/bin/pd-gui usr/bin/pd-gui +ln -s usr/bin/pd usr/lib64/pd//bin/pd +ln -s usr/lib64/pd/bin/pd.tk usr/bin/pd.tk +ln -s usr/lib64/pd/bin/pd-watchdog usr/bin/pd-watchdog" makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG # Delete source and build directories if requested |