diff options
-rw-r--r-- | system/dolphin/dolphin.SlackBuild | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/system/dolphin/dolphin.SlackBuild b/system/dolphin/dolphin.SlackBuild index 86b84ab061be4..234fd4c63571e 100644 --- a/system/dolphin/dolphin.SlackBuild +++ b/system/dolphin/dolphin.SlackBuild @@ -22,40 +22,45 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - -PRGNAME=dolphin +PRGNAM=dolphin VERSION=0.8.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAME +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi -KDEDIR=$(kde-config --prefix) || exit 1 +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 -rm -rf $PRGNAME-$VERSION -tar -xzvf $CWD/$PRGNAME-$VERSION.tar.gz || exit 1 -cd $PRGNAME-$VERSION || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 chown -R root:root . -chmod -R a-s,u+w,go+r-w . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=$KDEDIR \ - --sysconfdir=/etc \ + --prefix=/usr \ + --sysconfdir=/etc/kde \ --localstatedir=/var \ --program-suffix="" \ --program-prefix="" @@ -63,13 +68,13 @@ CXXFLAGS="$SLKCFLAGS" \ make || exit 1 make install-strip DESTDIR=$PKG || exit 1 -mkdir -p $PKG/usr/doc/$PRGNAME-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ - $PKG/usr/doc/$PRGNAME-$VERSION -cat $CWD/$PRGNAME.SlackBuild > $PKG/usr/doc/$PRGNAME-$VERSION/$PRGNAME.SlackBuild + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAME-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |