Skip to content

Commit

Permalink
Configured CPack for DEB packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Jan 9, 2016
1 parent 25ec15b commit c8c6dd4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>")
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)
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
3 changes: 3 additions & 0 deletions cmake/package.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IF (CPACK_GENERATOR MATCHES "DEB")
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
ENDIF()

0 comments on commit c8c6dd4

Please sign in to comment.