summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7749900edcae99a214ba26287782cb5bd51e818e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Lev Lybin <lev.lybin@gmail.com>
# Contributor: Lev Lybin <lev.lybin@gmail.com>

pkgname=screencloud
pkgver=1.3.1
pkgrel=6
pkgdesc="Easy to use screenshot sharing application."
arch=('i686' 'x86_64')
url="https://github.com/olav-st/screencloud"
license=('GPL2')
makedepends=('cmake' 'qt5-tools')
depends=('quazip' 'pythonqt' 'qt5-x11extras' 'xdg-utils' 'hicolor-icon-theme')
optdepends=('python-crypto: required for SFTP support')
options=('strip' 'docs' 'libtool' '!staticlibs' 'emptydirs' 'zipman' 'purge' '!optipng' '!upx' '!debug' '!emptydirs')
install="${pkgname}".install
conflicts=('screencloud-git')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/olav-st/${pkgname}/archive/v${pkgver}.tar.gz)
sha256sums=('c23d8efb955ea861920c548f7fd3255726e86409d7a2022952225c765cc3da52')

prepare() {
    # Create build directory
    mkdir -p "${srcdir}/${pkgname}-${pkgver}"/build
}

build() {
    # Needed for the self-compiled version
    local _consumer_key='ef5d77317892721a0acebbbc8157272b055da8074'
    local _consumer_secret='2d745141473f640b566aba29147fd672'

    cd "${srcdir}/${pkgname}-${pkgver}"/build
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_BINDIR=/usr/bin \
        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
        -DCMAKE_VERBOSE_MAKEFILE=OFF \
        -DCONSUMER_KEY_SCREENCLOUD="${_consumer_key}" \
        -DCONSUMER_SECRET_SCREENCLOUD="${_consumer_secret}" \
        -DQT_USE_QT5=ON \
        -DPYTHON_USE_PYTHON3=ON \
        -DCMAKE_BUILD_TYPE=Release ..
    make
}

package() {
    # Installing package
    cd "${srcdir}/${pkgname}-${pkgver}"/build

    # Install files
    make DESTDIR="${pkgdir}" install
}