Skip to content

Commit

Permalink
chore: update build scripts & bump version (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite authored Dec 24, 2024
1 parent 8f654d4 commit 968b110
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.24)
project(libpoktroll_clients VERSION 0.1.0)
project(libpoktroll_clients VERSION 0.2.0)

# Add option for building tests
option(BUILD_TESTS "Build test programs" OFF)
Expand Down Expand Up @@ -72,9 +72,10 @@ add_custom_target(build_go_shared_lib
)

add_custom_target(poktroll_clients ALL
COMMAND ${CMAKE_COMMAND} -E copy ${CLIENTS_SHARED_LIB}.${LIB_EXTENSION} ${CMAKE_BINARY_DIR}/libpoktroll_clients.${LIB_EXTENSION}
COMMAND ${CMAKE_COMMAND} -E copy ${CLIENTS_SHARED_LIB}.${LIB_EXTENSION} ${CMAKE_BINARY_DIR}/libpoktroll_clients.${LIB_EXTENSION}.${PROJECT_VERSION}
COMMAND ${CMAKE_COMMAND} -E create_symlink libpoktroll_clients.${LIB_EXTENSION}.${PROJECT_VERSION} ${CMAKE_BINARY_DIR}/libpoktroll_clients.${LIB_EXTENSION}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/cgo/build/libpoktroll_clients.h ${CMAKE_BINARY_DIR}/libpoktroll_clients.h
DEPENDS build_go_shared_lib
DEPENDS ${CLIENTS_SHARED_LIB}.${LIB_EXTENSION}
)

# Set library properties for versioning and naming
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgdesc="@CPACK_PACKAGE_DESCRIPTION_SUMMARY@"
arch=('@ARCH@')
url="https://github.com/pokt-network/libpoktroll_clients"
license=('MIT')
depends=('protobuf-c' 'go')
depends=('go')
makedepends=('cmake' 'protobuf')
source=("$pkgname-$pkgver-@[email protected]")
sha256sums=('SKIP')
Expand Down

0 comments on commit 968b110

Please sign in to comment.