summaryrefslogtreecommitdiff
path: root/system/ddrescue-gui/ddrescue-gui.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ddrescue-gui/ddrescue-gui.SlackBuild')
-rw-r--r--system/ddrescue-gui/ddrescue-gui.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/system/ddrescue-gui/ddrescue-gui.SlackBuild b/system/ddrescue-gui/ddrescue-gui.SlackBuild
index 67876f102d..4e144bc7d1 100644
--- a/system/ddrescue-gui/ddrescue-gui.SlackBuild
+++ b/system/ddrescue-gui/ddrescue-gui.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ddrescue-gui
-VERSION=${VERSION:-1.7.2}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,7 +56,7 @@ fi
set -e
-SRCVER=${SRCVER:-1.7.2~otherdistro~update1-0ubuntu1~ppa1}
+SRCVER=${SRCVER:-2.0.0~otherdistro-0ubuntu1~ppa1}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -74,18 +74,24 @@ find -L . \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-DATA="GetDevInfo Tests Tools images other AuthenticationDialog.py DDRescue-GUI.py Tests.py"
+DATA="Tests Tools docs images other DDRescue_GUI.py tests.py"
mkdir -p $PKG/usr/share/$PRGNAM
-cp -a $DATA $PKG/usr/share/$PRGNAM
-install -D -m644 ddrescue-gui.desktop $PKG/usr/share/applications/ddrescue-gui.desktop
-install -D -m644 ddrescue-gui.png $PKG/usr/share/pixmaps/ddrescue-gui.png
+cp -r $DATA $PKG/usr/share/$PRGNAM
+
+install -Dm644 org.hamishmb.ddrescue-gui.policy $PKG/usr/share/polkit-1/actions/org.hamishmb.ddrescue-gui.policy
+install -Dm644 $CWD/ddrescue-gui.desktop $PKG/usr/share/applications/ddrescue-gui.desktop
+install -Dm644 ddrescue-gui.png $PKG/usr/share/pixmaps/ddrescue-gui.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp debian/changelog $PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog
cp debian/copyright $PKG/usr/doc/$PRGNAM-$VERSION/copyright
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+install -Dm644 $CWD/ddrescue-gui.1 $PKG/usr/man/man1/ddrescue-gui.1
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh