summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2018-07-21 00:07:47 +0000
committerDaniel Bermond2018-07-21 00:08:09 +0000
commitcc351ae1a46f3de5e6fc57eef720162240045dae (patch)
tree01619bfbdc5e40b4212678e7afb46682147f9161 /PKGBUILD
parent22beb4f0ae7c06f815f3006af017c1df91e025a6 (diff)
downloadaur-cc351ae1a46f3de5e6fc57eef720162240045dae.tar.gz
Fix build
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD69
1 files changed, 36 insertions, 33 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d94ce99e0e3..3889c229d13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,55 +1,58 @@
-# Maintainer: Lev Lybin <lev.lybin@gmail.com>
+# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
# Contributor: Lev Lybin <lev.lybin@gmail.com>
pkgname=screencloud
-pkgver=1.3.1.1
+pkgver=1.3.1
pkgrel=1
-_pkgcommit=ad3727e1d5391899c783c94ffc2d537083f56309
-pkgdesc="Easy to use screenshot sharing application."
+pkgdesc='An easy to use screenshot sharing application'
arch=('i686' 'x86_64')
-url="https://github.com/olav-st/screencloud"
+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
+makedepends=('cmake')
+depends=(
+ # official repositories:
+ 'quazip' 'zlib' 'python' 'openssl' 'libx11' 'libxext' 'qt5-base'
+ 'qt5-svg' 'qt5-x11extras' 'qt5-multimedia' 'hicolor-icon-theme'
+ # AUR:
+ 'pythonqt'
+)
+optdepends=('python-crypto: for SFTP support')
conflicts=('screencloud-git')
-#source=(${pkgname}-${pkgver}.tar.gz::https://github.com/olav-st/${pkgname}/archive/v${pkgver}.tar.gz)
-source=(${pkgname}-${pkgver}-master.tar.gz::https://github.com/olav-st/screencloud/archive/${_pkgcommit}.zip)
-sha256sums=('5734d7af31b7ebc8eafbaf02668449e2fa5b05bea9545371df89a1bc24896333')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/olav-st/${pkgname}/archive/v${pkgver}.tar.gz"
+ 'screencloud-1.3.1-fix-pythonqt-detection.patch')
+sha256sums=('c23d8efb955ea861920c548f7fd3255726e86409d7a2022952225c765cc3da52'
+ '9ec7c818fe5db23e72199946c25bd528b302e7b12ee29f9791c50ffc6dba2c1e')
prepare() {
- # Create build directory
- #mkdir -p "${srcdir}/${pkgname}-${pkgver}"/build
- mkdir -p "${srcdir}/${pkgname}-${_pkgcommit}"/build
+ cd "${pkgname}-${pkgver}"
+
+ mkdir -p build
+
+ patch -Np1 -i "${srcdir}/screencloud-1.3.1-fix-pythonqt-detection.patch"
}
build() {
- # Needed for the self-compiled version
+ # needed for the self-compiled version
local _consumer_key='ef5d77317892721a0acebbbc8157272b055da8074'
local _consumer_secret='2d745141473f640b566aba29147fd672'
- #cd "${srcdir}/${pkgname}-${pkgver}"/build
- cd "${srcdir}/${pkgname}-${_pkgcommit}"/build
+ cd "${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 ..
+ cmake \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -DCOLOR_OUTPUT:BOOL='ON' \
+ -DCONSUMER_KEY_SCREENCLOUD:STRING="$_consumer_key" \
+ -DCONSUMER_SECRET_SCREENCLOUD:STRING="$_consumer_secret" \
+ -DPYTHON_USE_PYTHON3:BOOL='ON' \
+ -DQT_USE_QT5:BOOL='ON' \
+ -Wno-dev \
+ ..
+
make
}
package() {
- # Installing package
- #cd "${srcdir}/${pkgname}-${pkgver}"/build
- cd "${srcdir}/${pkgname}-${_pkgcommit}"/build
+ cd "${pkgname}-${pkgver}/build"
- # Install files
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="$pkgdir" install
}