~dobey/+junk/binkplayer-installer

« back to all changes in this revision

Viewing changes to debian/binkplayer.postinst.in

  • Committer: Rodney Dawes
  • Date: 2016-03-27 20:11:05 UTC
  • Revision ID: dobey@wayofthemonkey.com-20160327201105-6ff52x0y6qzrk0aq
New binkplayer verison.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
PRODUCT="Bink Player"
6
6
PACKAGE=binkplayer
7
7
FILENAME=BinkLinuxPlayer.7z
8
 
PROGFILE=BinkPlayer
9
 
SHA256SUM="fcd7ee14268706893c821dc0d5d9b199d83ddfa40619630df53fc05d307a2f9c"
 
8
PROGFILE=@PROGFILE@
 
9
PROGNAME=BinkPlayer
 
10
SHA256SUM="edcd0483ece42aa11cb99c85f93878798dc5817a8136930e787aa6cc9bbae4f9"
10
11
PARTNER_URL=http://www.radgametools.com/down/Bink/$FILENAME
11
12
 
 
13
 
12
14
. /usr/share/debconf/confmodule
13
15
 
14
16
mc_exit_with_error() {
64
66
mc_download_and_unpack
65
67
 
66
68
p7zip -d $FILENAME
67
 
install -m 755 $PROGFILE /usr/bin/
68
 
rm -rf $PROGFILE
 
69
install -m $PROGFILE 755 $ /usr/bin/$PROGNAME
 
70
rm -rf ${PROGNAME} ${PROGNAME}64
69
71
 
70
72
echo "$PRODUCT installed."
71
73