diff --git a/AUR/PKGBUILD b/AUR/PKGBUILD index 459792f..5ce7268 100644 --- a/AUR/PKGBUILD +++ b/AUR/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Mario Hüttel pkgname=patchelfcrc -pkgver=5e7f697 +pkgver=v1.0.0_rc1 pkgrel=1 pkgdesc="Tool for patching CRC checksums of sections into ELF binaries" arch=('i686' 'x86_64') url="https://git.shimatta.de/mhu/patchelfcrc" licence=('GPLv2') depends=('libelf' 'libxml2') -makedepends=('cmake' 'pandoc' 'git' 'gvim') +makedepends=('cmake' 'pandoc' 'git' 'gvim' 'bash') provides=('patchelfcrc') source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/patchelfcrc" "git+https://git.shimatta.de/3rd-party/libfort.git" "git+https://git.shimatta.de/mhu/linklist-lib") sha1sums=('SKIP' 'SKIP' 'SKIP') diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 451868e..ce192a9 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -10,10 +10,10 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME} COMMAND - bash -c "pandoc \"${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md\" -s -t man | gzip > \"${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}\"" + bash -c "cat \"${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md\" | sed \"s/!version!/`git describe --tags --always --dirty`/\" | pandoc -s -t man | gzip > \"${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}\"" VERBATIM WORKING_DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/patchelfcrc.1.md -) \ No newline at end of file +) diff --git a/man/patchelfcrc.1.md b/man/patchelfcrc.1.md index a7b4973..ce2f7a8 100644 --- a/man/patchelfcrc.1.md +++ b/man/patchelfcrc.1.md @@ -1,4 +1,4 @@ -% patchelfcrc(1) 0.0.2 +% patchelfcrc(1) !version! % Mario Huettel % October 2022