aboutsummaryrefslogtreecommitdiffstats
path: root/games/civ2demo/files/do-install
blob: 6312e0bc0aea0422fca6210cc726f7cfbd1755f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

PATH=/bin:/usr/bin
PREFIX=$1
DISTDIR=$2

BINDIR=${PREFIX}/bin
LIBDIR=${PREFIX}/lib/civctp_demo

set -e

#mkdir -p ${LIBDIR}/

#SKIP=`strings ${DISTDIR}/rt2-demo.run | head -10 | grep ^skip= | cut -d= -f2`
#tail +$SKIP /usr/ports/distfiles/rt2-demo.run | \
#   tar -C ${LIBDIR}/ -xz -f - --exclude rt2_demo --exclude rt2_demo.ppc

tar -C ${PREFIX}/lib/ -xz -f ${DISTDIR}/civctp-demo-10251999.tar.gz

mv ${LIBDIR}/bin/x86/glibc-2.1/civctp ${LIBDIR}
rm -r ${LIBDIR}/bin 

brandelf -t Linux ${LIBDIR}/civctp

ln -sf ${LIBDIR}/civctp ${BINDIR}/civctp_demo