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 | |
Create repository
Diffstat (limited to 'tools/packages/debian')
| -rwxr-xr-x | tools/packages/debian/control | 8 | ||||
| -rwxr-xr-x | tools/packages/debian/generate.sh | 25 | ||||
| -rwxr-xr-x | tools/packages/debian/ochess.deb | bin | 0 -> 3545808 bytes |
3 files changed, 33 insertions, 0 deletions
diff --git a/tools/packages/debian/control b/tools/packages/debian/control new file mode 100755 index 0000000..1c4ca96 --- /dev/null +++ b/tools/packages/debian/control @@ -0,0 +1,8 @@ +Package: Ochess +Version: 1.0-1 +Section: base +Priority: optional +Architecture: amd64 +Depends: libboost-all-dev, build-essential, libwxgtk3.0-dev +Maintainer: Loic Guegan <loic.guegan@mailbox.org> +Description: Basic Ochess package 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 diff --git a/tools/packages/debian/ochess.deb b/tools/packages/debian/ochess.deb Binary files differnew file mode 100755 index 0000000..5c1fb2a --- /dev/null +++ b/tools/packages/debian/ochess.deb |
