Synchronize with sensei-raw-ctl

This commit is contained in:
Přemysl Eric Janouch 2023-07-05 00:38:32 +02:00
parent 942a513530
commit f85f79d6ad
Signed by: p
GPG Key ID: A0420B94F92B9493
3 changed files with 11 additions and 14 deletions

View File

@ -1,6 +1,5 @@
cmake_minimum_required (VERSION 2.8.5)
project (razer-bw-te-ctl C)
set (project_VERSION "1.0")
cmake_minimum_required (VERSION 3.0)
project (razer-bw-te-ctl VERSION 1.0 LANGUAGES C)
find_package (PkgConfig REQUIRED)
pkg_check_modules (dependencies REQUIRED libusb-1.0)
@ -40,18 +39,17 @@ endforeach ()
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Razer BlackWidow Tournament Edition control utility")
set (CPACK_PACKAGE_VERSION ${project_VERSION})
set (CPACK_PACKAGE_VENDOR "Premysl Eric Janouch")
set (CPACK_PACKAGE_CONTACT "Přemysl Eric Janouch <p@janouch.name>")
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set (CPACK_GENERATOR "TGZ;ZIP")
set (CPACK_PACKAGE_FILE_NAME
"${PROJECT_NAME}-${project_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
"${PROJECT_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_SOURCE_GENERATOR "TGZ;ZIP")
set (CPACK_SOURCE_IGNORE_FILES "/\\\\.git;/build;/CMakeLists.txt.user")
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${project_VERSION}")
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
set (CPACK_SET_DESTDIR TRUE)
include (CPack)

View File

@ -13,18 +13,20 @@ Run `razer-bw-te-ctl --help` or `man razer-bw-te-ctl` for usage information.
Packages
--------
Regular releases are sporadic. git master should be stable enough. You can get
a package with the latest development version from Archlinux's AUR.
Regular releases are sporadic. git master should be stable enough.
You can get a package with the latest development version using Arch Linux's
https://aur.archlinux.org/packages/razer-bw-te-ctl-git[AUR],
or as a https://git.janouch.name/p/nixexprs[Nix derivation].
Installation
------------
Build dependencies: cmake >= 2.8.5, help2man +
Build dependencies: cmake >= 3.0, help2man +
Runtime dependencies: libusb >= 1.0
$ git clone https://git.janouch.name/p/razer-bw-te-ctl.git
$ mkdir razer-bw-te-ctl/build
$ cd razer-bw-te-ctl/build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
# make install
Note that there's no `make uninstall`.
@ -34,9 +36,6 @@ For Debian-based distros, you can do the following instead of the last step:
$ cpack -G DEB
# dpkg -i razer-bw-te-ctl-*.deb
Note that for versions of CMake before 2.8.9, you need to prefix `cpack` with
`fakeroot` or file ownership will end up wrong.
Contributing and Support
------------------------
Use https://git.janouch.name/p/razer-bw-te-ctl to report bugs, request features,

View File

@ -2,6 +2,6 @@
#define CONFIG_H
#define PROJECT_NAME "${CMAKE_PROJECT_NAME}"
#define PROJECT_VERSION "${project_VERSION}"
#define PROJECT_VERSION "${PROJECT_VERSION}"
#endif // ! CONFIG_H