diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-08-20 19:51:42 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-21 08:55:25 -0500 |
commit | 3db421e8af122d38340edb1a74b90d0089d3ab90 (patch) | |
tree | 8c14f3b160adad88777e184e836e2715154be511 /multimedia/2ManDVD/2ManDVD.SlackBuild | |
parent | e638ad71345fd10959ab2bab2ad68ddfe2bc6309 (diff) |
multimedia/2ManDVD: Updated for version 1.8.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/2ManDVD/2ManDVD.SlackBuild')
-rw-r--r-- | multimedia/2ManDVD/2ManDVD.SlackBuild | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/multimedia/2ManDVD/2ManDVD.SlackBuild b/multimedia/2ManDVD/2ManDVD.SlackBuild index 362c6858e9eab..fb79f929f33c6 100644 --- a/multimedia/2ManDVD/2ManDVD.SlackBuild +++ b/multimedia/2ManDVD/2ManDVD.SlackBuild @@ -7,7 +7,7 @@ # Modified by the slackbuilds.org project. PRGNAM=2ManDVD -VERSION=${VERSION:-1.7.2} +VERSION=${VERSION:-1.8.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,7 +44,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM chown -R root:root . find . \ @@ -53,15 +53,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# patch to fix const char concatenation - tnx to hwoarang from gentoo -patch -p1 < $CWD/2mandvd-fix-const-char-concatenation.patch - -# Fix installation path -for file in mainfrm.cpp media_browser.cpp rendering.cpp; do - sed -i "s:qApp->applicationDirPath().\?+.\?\":\"/usr/share/$PRGNAM/:" $file -done - -sed -i "s:qApp->applicationDirPath():\"/usr/share/$PRGNAM/\":" mainfrm.cpp +sed -i "s|^unix.*||" $PRGNAM.pro +sed -i "s|^ICONS_DIR.path.*|ICONS_DIR.path = /usr/share/pixmaps|" $PRGNAM.pro +sed -i "s|^Icon=/usr/share/2ManDVD|Icon=/usr/share/pixmaps|" $PRGNAM.desktop qmake \ QMAKE_CFLAGS="$SLKCFLAGS" \ @@ -69,27 +63,7 @@ qmake \ $PRGNAM.pro make - -install -D -m 0755 $PRGNAM $PKG/usr/bin/$PRGNAM -install -D -m 0644 $CWD/acquia_marina_logo.png $PKG/usr/share/pixmaps/mandvdico.png - -mkdir -p $PKG/usr/share/$PRGNAM -chmod -R 0755 Bibliotheque Interface -cp -a \ - Bibliotheque Interface 2mandvd_*.qm 2mandvd_*.ts *.pl \ - $PKG/usr/share/$PRGNAM - -# Make desktop entry -mkdir -p $PKG/usr/share/applications -echo "[Desktop Entry] -Name=2ManDVD -Type=Application -Comment=Tool for creating DVD Video -Exec=2ManDVD -Icon=mandvdico -Terminal=false -Categories=Qt;AudioVideo;Video;" \ -> $PKG/usr/share/applications/2ManDVD.desktop +make install INSTALL_ROOT=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |