Create repository

This commit is contained in:
Loic Guegan 2022-02-23 18:11:55 +01:00
commit ce941c146a
127 changed files with 16162 additions and 0 deletions

8
tools/packages/debian/control Executable file
View file

@ -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

View file

@ -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

BIN
tools/packages/debian/ochess.deb Executable file

Binary file not shown.