# Maintainer: Samuel Walladge # Contributor: Karel Louwagie # Contributor: Serge Pavlyuk # Contributor: phi-mah pkgname=toggldesktop pkgver=7.4.528 pkgrel=3 pkgdesc="Toggl time tracking software" arch=('x86_64') url="https://github.com/toggl/toggldesktop" license=('BSD') depends=( 'libxss' 'qt5-base' 'qt5-webengine' 'qt5-x11extras' 'openssl' 'poco' 'lua' 'jsoncpp' ) makedepends=('cmake') source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/toggl/toggldesktop/archive/v${pkgver}.tar.gz" "jsoncpp.patch" ) sha512sums=( '46d32861339e832b02c7a3edee8e4dfae0e9f0c685414c559c5c0df1ff82aabc05df528efe31b70a1eeb8fcd14f8e6a6669b05d4eac6534c4f6024906bd39030' '05813df185163e1361d99cf24291bd44bdfefeee050b56f2923fb909c2c57d532e0a459cdaea96504ed10d27004fe3ee9f3c34ec35bcc9f9f2e064cccd8cfe77' ) conflicts=('toggldesktop-bin' 'toggl-bin') prepare() { cd "${pkgname}-${pkgver}" # patch to build patch -p1 < ../jsoncpp.patch } build() { mkdir -p build cd build cmake ../${pkgname}-${pkgver}\ -DCMAKE_INSTALL_PREFIX=/usr\ -DTOGGL_VERSION:STRING="${pkgver}"\ -DTOGGL_PRODUCTION_BUILD=ON\ -DTOGGL_ALLOW_UPDATE_CHECK=ON\ -DUSE_BUNDLED_LIBRARIES=OFF make } package() { cd build make DESTDIR="$pkgdir/" install cd "../${pkgname}-${pkgver}" # license file in standard location install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim:set ts=2 sw=2 et: