File: build.sh

package info (click to toggle)
quicktun 2.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: ansic: 2,098; sh: 185; makefile: 8
file content (20 lines) | stat: -rwxr-xr-x 733 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e
VERSION=`cat ../version`-0
ARCH=`dpkg --print-architecture`
rm -r data 2>/dev/null || true
cp -r static data
mkdir -p data/usr data/usr/sbin data/DEBIAN
sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control
sed "s/%VERSION%/${VERSION}/" -i data/DEBIAN/control
if [ -n "${NACL_SHARED}" ]; then
	sed "s/\\(Depends: .*\\)/\\1, libnacl | libnacl-ref | libnacl-build/" -i data/DEBIAN/control
fi
cp ../out/quicktun.raw data/usr/sbin/
cp ../out/quicktun.nacl0 data/usr/sbin/
cp ../out/quicktun.nacltai data/usr/sbin/
cp ../out/quicktun.debian data/usr/sbin/
cp ../out/quicktun.keypair data/usr/sbin/
cp ../out/quicktun data/usr/sbin/
fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb
mv quicktun*.deb ../out/