aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-05-11 22:39:08 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-05-11 22:39:08 +0000
commitc0118aae793d9fa9bbdbe8d660e6742903a1f8e5 (patch)
tree2f6509f86d78e1bcf3595bba82389b1ccbb86e6b
parent19aa1c55a0171f170b2cbe48f7bfdae4968e3688 (diff)
downloadslackbuilds-c0118aae793d9fa9bbdbe8d660e6742903a1f8e5.tar.gz
slackbuilds-c0118aae793d9fa9bbdbe8d660e6742903a1f8e5.tar.bz2
pd: rebuilt from mkbuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1888 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-xmedia/sound/pd/pd.SlackBuild43
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