mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Create repository
This commit is contained in:
commit
ce941c146a
127 changed files with 16162 additions and 0 deletions
32
tools/packages/archlinux/PKGBUILD
Normal file
32
tools/packages/archlinux/PKGBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: Loic Guegan <loic.guegan@mailbox.org>
|
||||
|
||||
pkgname=ochess
|
||||
pkgver=0.1
|
||||
pkgrel=0.1
|
||||
pkgdesc='Open source chess database/games management.'
|
||||
arch=(x86_64)
|
||||
url='https://gitlab.com/manzerbredes/ochess'
|
||||
license=(GPL)
|
||||
depends=()
|
||||
makedepends=(wxgtk3-dev gcc)
|
||||
source=("ochess-master.tar.bz2")
|
||||
sha256sums=('b9ca8efd769945b5cc55370a863d2f8f4bca82699c5f775c844a7b95a2829187')
|
||||
options=(!buildflags)
|
||||
|
||||
build() {
|
||||
cd ochess-master
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ../
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
mkdir -p $pkgdir/usr/bin/
|
||||
mkdir -p $pkgdir/usr/share/ochess/
|
||||
|
||||
cd ochess-master/build/
|
||||
cp ochess $pkgdir/usr/bin/
|
||||
cp -r assets $pkgdir/usr/share/ochess/
|
||||
}
|
8
tools/packages/debian/control
Executable file
8
tools/packages/debian/control
Executable 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
|
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
|
BIN
tools/packages/debian/ochess.deb
Executable file
BIN
tools/packages/debian/ochess.deb
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue