mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-15 16:17:40 +00:00
Create repository
This commit is contained in:
commit
ce941c146a
127 changed files with 16162 additions and 0 deletions
25
tools/packages/debian/generate.sh
Executable file
25
tools/packages/debian/generate.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue