diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 18:11:55 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 18:11:55 +0100 |
| commit | ce941c146aea7925bded6b9d2a0d0559d3156ad3 (patch) | |
| tree | 4c52e02600e3fd127bfb28b3e974d45541ec9e4e /tools/packages/debian/generate.sh | |
Create repository
Diffstat (limited to 'tools/packages/debian/generate.sh')
| -rwxr-xr-x | tools/packages/debian/generate.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/packages/debian/generate.sh b/tools/packages/debian/generate.sh new file mode 100755 index 0000000..f142649 --- /dev/null +++ b/tools/packages/debian/generate.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +archive="ochess-master.tar.bz2" +pkg="ochess" + +# Build +tar -xvf $archive +old_dir=$(pwd) +cd ochess-master/ +mkdir -p build && cd build +cmake ../ +make +cd $old_dir + +# Create pkg +mkdir -p $pkg/usr/local/bin +mkdir -p $pkg/usr/share/ochess +mkdir -p $pkg/DEBIAN + +cp ochess-master/build/ochess $pkg/usr/local/bin/ +cp -r ochess-master/build/assets/ $pkg/usr/share/ochess/ +cp control $pkg/DEBIAN/ + +# Build package +dpkg-deb --build ochess |
