1 # Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
3 ##############################################################
4 #### The section below can be adjusted to suit your needs ####
5 ##############################################################
7 # What type of build do you want?
8 # See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
9 # Default is RelWithDebInfo to help with debugging.
11 _buildtype="RelWithDebInfo"
13 ##############################################################
19 pkgdesc="C++ Qt based Twitter library"
20 arch=('i686' 'x86_64')
21 url="https://github.com/minimoog/QTweetLib"
24 makedepends=('cmake>=2.8')
25 provides=('qtweetlib')
26 conflicts=('qtweetlib-git')
28 source=(https://github.com/downloads/minimoog/QTweetLib/QTweetLib-0.3.0.tar.gz)
29 md5sums=('a37055e7c081049294efb42126933cef')
31 # Clean options array to strip pkg if release buildtype is chosen
32 if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
37 msg "Starting build..."
39 rm -rf ${srcdir}/${pkgname}-build
40 mv ${srcdir}/minimoog-QTweetLib-${_rev} ${srcdir}/${pkgname}-build
41 cd ${srcdir}/${pkgname}-build
43 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype}
48 cd ${srcdir}/${pkgname}-build
49 make DESTDIR=${pkgdir} install