blob: 04a7b97d04b781ac4263165f846168a0b201f3f9 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Alfredo Ramos <alfredo dot ramos at yandex dot com>
_pkgname=screencloud
pkgname=${_pkgname}-git
pkgver=1.2.0.r46.g5a493dd
pkgrel=2
pkgdesc='An easy to use screenshot sharing tool. Experimental Qt5 UI. Development version.'
arch=('i686' 'x86_64')
url='https://screencloud.net/'
license=('GPL2')
depends=('pythonqt-qt5' 'quazip-qt5' 'qt5-x11extras' 'xdg-utils' 'hicolor-icon-theme')
optdepends=(
'python-crypto: for SFTP support'
)
makedepends=('cmake' 'git' 'qt5-tools')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
install=${pkgname}.install
source=(
"git+https://github.com/olav-st/${_pkgname}.git"
)
sha512sums=(
'SKIP'
)
pkgver() {
# Updating package version
cd ${srcdir}/${_pkgname}
(
set -o pipefail
git describe --long --tags 2>/dev/null | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
# Create build directory
mkdir -p ${srcdir}/build
}
# Needed for the self-compiled version
_SCREENCLOUD_CONSUMER_KEY='ef5d77317892721a0acebbbc8157272b055da8074'
_SCREENCLOUD_CONSUMER_SECRET='2d745141473f640b566aba29147fd672'
build() {
# Building package
cd ${srcdir}/build
cmake ../${_pkgname}/${_pkgname} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
-DCONSUMER_KEY_SCREENCLOUD=${_SCREENCLOUD_CONSUMER_KEY} \
-DCONSUMER_SECRET_SCREENCLOUD=${_SCREENCLOUD_CONSUMER_SECRET} \
-DQT_USE_QT5=ON \
-DPYTHON_USE_PYTHON3=ON
}
package() {
# Installing package
cd ${srcdir}/build
# Make a copy of the PythonQt lib
mkdir -p ${srcdir}/build/PythonQt
cp /usr/lib/libPythonQt.so ${srcdir}/build/PythonQt/
make DESTDIR=${pkgdir} install
}
|