#!/bin/bash echo '*************************************************' echo '**** Creating 64 bits package for DraftSight ****' echo '************** http://www.atareao.es ************' echo '*************************************************' echo if [ -f draftSight.deb ] then if [ -d ./temp_draftsight64 ] then echo 'removing temp_draftsight64' rm -rf temp_draftsight64 echo fi echo 'making temp_draftsight64 directory' mkdir temp_draftsight64 echo echo 'depackaging DraftSight 32 bits' dpkg-deb -x draftSight.deb ./temp_draftsight64 dpkg-deb -e draftSight.deb ./temp_draftsight64/DEBIAN echo echo 'changing architecture' sed -i 's/Architecture: i386/Architecture: amd64/g' ./temp_draftsight64/DEBIAN/control echo echo 'adding dependencies' sed -i 's/Pre-Depends: /Pre-Depends: libdirectfb-extra, libxcb-render-util0, /g' ./temp_draftsight64/DEBIAN/control echo echo 'creating package for 64 bits' dpkg-deb -b ./temp_draftsight64 draftSight_64.deb echo echo 'removing temporary directory temp_draftsight64' rm -rf temp_draftsight64 echo echo 'finished correctly' fi