Skip to content

Commit

Permalink
[Maintenance] Made easier to read; remove clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
adi-g15 committed Jun 7, 2021
1 parent b6c73fc commit bb8faea
Show file tree
Hide file tree
Showing 19 changed files with 148 additions and 314 deletions.
11 changes: 0 additions & 11 deletions .github/pull.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/firebase-hosting-pull-request.yml

This file was deleted.

31 changes: 27 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
experiment*
delete*
*sh
question*
.vs
.vscode
ludo-the-game

# C++
#CMake
Expand Down Expand Up @@ -57,3 +55,28 @@ build/
*.exe
*.out
*.app

# Created by https://www.toptal.com/developers/gitignore/api/archlinuxpackages
# Edit at https://www.toptal.com/developers/gitignore?templates=archlinuxpackages

### ArchLinuxPackages ###
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig

pkg/
src/

# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages

experiment*
delete*
*sh
question*
29 changes: 0 additions & 29 deletions .vscode/c_cpp_properties.json

This file was deleted.

15 changes: 0 additions & 15 deletions .vscode/launch.json

This file was deleted.

95 changes: 0 additions & 95 deletions .vscode/settings.json

This file was deleted.

53 changes: 0 additions & 53 deletions .vscode/tasks.json

This file was deleted.

10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
cmake_minimum_required(VERSION 3.0.0)
project(Ludo-The_Game VERSION 2.3.0)
project(Ludo-The_Game VERSION 2.3.1)

set(CMAKE_CXX_STANDARD 17)

file(GLOB SOURCES "src/*.cpp")
add_executable(ludo main.cpp ${SOURCES})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
target_include_directories(ludo PRIVATE includes)
target_include_directories(ludo PRIVATE .)

find_package(Threads REQUIRED)
target_link_libraries(ludo PRIVATE Threads::Threads)

target_include_directories(ludo PRIVATE includes)
target_include_directories(ludo PRIVATE .)
# If you want, you can install the 'ludo' executable, just run 'cmake --install .' inside build directory
install(TARGETS ludo DESTINATION bin COMPONENT binaries)
33 changes: 33 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pkgname=ludo-the-game-git
pkgver=r135.b6c73fc
pkgrel=1
pkgdesc="An implementation of the famous board game Ludo, using C++"
arch=('x86_64')
url="https://github.com/adi-g15/Ludo-The_Game"
license=('MIT')
depends=()
makedepends=('git' 'cmake' 'gcc')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('ludo-the-game::git+https://github.com/adi-g15/Ludo-The_Game')
md5sums=('SKIP')

pkgver() {
cd "$srcdir/${pkgname%-git}"

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build && cd build
rm -f CMakeCache.txt
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
}

package() {
cd "$srcdir/${pkgname%-git}"
cd build
DESTDIR="$pkgdir/" cmake --install .
}
Loading

0 comments on commit bb8faea

Please sign in to comment.