2018-05-03 09:03:25 +02:00
|
|
|
#!/bin/bash
|
|
|
|
mkdir -p deb/usr/bin/
|
|
|
|
mkdir -p target/
|
2018-05-25 23:07:01 +02:00
|
|
|
|
2018-05-03 09:03:25 +02:00
|
|
|
go build -o deb/usr/bin/gomuks
|
2018-05-25 23:07:01 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-05-03 09:03:25 +02:00
|
|
|
version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }')
|
|
|
|
dpkg-deb --build deb target/gomuks-$version.deb
|