1 # Copyright 2016-2021 Chun-Yu Lee (Mat) <matlinuxer2@gmail.com>
2 # Distributed under the terms of the MIT License
8 DESCRIPTION
="Beyond Compare -- Compare, sync, and merge files and folders"
9 HOMEPAGE
="http://www.scootersoftware.com/"
11 x86? ( http://www.scootersoftware.com/bcompare-${PV}.i386.tar.gz )
12 amd64? ( http://www.scootersoftware.com/bcompare-${PV}.x86_64.tar.gz )"
30 local targetdir
="/opt/bcompare"
31 local LAUNCHER
="bcompare/bin/bcompare"
33 insinto
"${targetdir}"
34 sed -i .
/install.sh
-e 's/^# Create desktop entry and place.*/exit 0/g'
35 sed -i .
/install.sh
-e "s%^# Copy the files.*%BC_BIN=\"$D/\$BC_BIN\"; BC_LIB=\"$D/\$BC_LIB\";%g"
36 sed -i .
/install.sh
-e "s/^\texit 1.*//g"
37 .
/install.sh
--prefix="${targetdir}"
40 dosym
/opt
/${LAUNCHER} /opt
/bin
/${LAUNCHER/*bin\/}