From c0118aae793d9fa9bbdbe8d660e6742903a1f8e5 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 11 May 2008 22:39:08 +0000 Subject: pd: rebuilt from mkbuild git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1888 370017ae-e619-0410-ac65-c121f96126d4 --- media/sound/pd/pd.SlackBuild | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) (limited to 'media/sound/pd/pd.SlackBuild') 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 -- cgit v1.2.3