diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d7aa3c0..0134b812 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,3 +87,22 @@ if(BUILD_TESTS) else() add_subdirectory(tests EXCLUDE_FROM_ALL) endif() + +# CPack configuration +set(CPACK_GENERATOR "DEB") +set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_SOURCE_DIR}/package.txt) +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Peek - an animated GIF recorder") +set(CPACK_PACKAGE_VENDOR "") +set(CPACK_PACKAGE_CONTACT "Philipp Wolfer ") +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") +set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") +set(CPACK_PACKAGE_VERSION_MAJOR ${PEEK_VERSION_MAJOR}) +set(CPACK_PACKAGE_VERSION_MINOR ${PEEK_VERSION_MINOR}) +set(CPACK_PACKAGE_VERSION_PATCH ${PEEK_VERSION_PATCH}) +set(CPACK_PACKAGE_INSTALL_DIRECTORY "Peek") + +set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk-3-0 (>= 3.10), libglib2.0-0 (>= 2.38), ffmpeg, imagemagick") +set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") +set(CPACK_DEBIAN_PACKAGE_SECTION "video") + +include(CPack) diff --git a/README.md b/README.md index db8c50ab..c55fefd1 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,21 @@ operating systems in the future. * Gettext ## Installation +### Arch Linux +For Arch Linux there is a +[PKGBUILD](https://aur4.archlinux.org/packages/peek/) available in the AUR. + +### Ubuntu / Debian +A AMD64 DEB package is provided for download for the [latest release](https://github.com/phw/peek/releases). + +In theory this package should also work on Debian. In practice you will miss the ffmpeg package. libav is currently not directly usable as a replacement, but I am working on it ;) + +### From source You can build and install Peek using CMake: cmake . && make make install -For Arch Linux there is also a -[PKGBUILD](https://aur4.archlinux.org/packages/peek/) available in the AUR. - ## Translations You can help translate Peek into your language. Please visit the [Peek localization project](https://www.transifex.com/phwolfer/peek/) diff --git a/cmake/package.txt b/cmake/package.txt new file mode 100644 index 00000000..70da8a88 --- /dev/null +++ b/cmake/package.txt @@ -0,0 +1,3 @@ +IF (CPACK_GENERATOR MATCHES "DEB") + set(CPACK_PACKAGING_INSTALL_PREFIX "/usr") +ENDIF()