]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
pd: rebuilt from mkbuild
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 11 May 2008 22:39:08 +0000 (22:39 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Sun, 11 May 2008 22:39:08 +0000 (22:39 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1888 370017ae-e619-0410-ac65-c121f96126d4

media/sound/pd/pd.SlackBuild

index 18d5ce526c9aeff8c4cd3641cc233e09cc33a509..57a2ce2767a3a920e4079a876c20cd94429e93b6 100755 (executable)
@@ -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