aboutsummaryrefslogtreecommitdiff
path: root/scripts/package
blob: 6b38a004db67bbd4294a0012d4242087c9a43bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
mkdir -p deb/usr/bin/
mkdir -p target/

go build -o deb/usr/bin/gomuks

go get -u maunium.net/go/tcell
mkdir -p deb/usr/share/tcell/
rm -rf deb/usr/share/tcell/database
cp -r $GOPATH/src/maunium.net/go/tcell/terminfo/database deb/usr/share/tcell

version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }')
dpkg-deb --build deb target/gomuks-$version.deb