mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 07:54:38 +08:00
56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
#
|
|
# Apps SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
# contributor kote martini438[at]gmail.com
|
|
|
|
##############################################################
|
|
#### The section below can be adjusted to suit your needs ####
|
|
##############################################################
|
|
|
|
# What type of build do you want?
|
|
# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
|
|
# Default is RelWithDebInfo to help with debugging.
|
|
|
|
_buildtype="RelWithDebInfo"
|
|
|
|
##############################################################
|
|
|
|
pkgname=qtweetlib
|
|
pkgver=0.3.0
|
|
pkgrel=1
|
|
_rev=f0442f6
|
|
pkgdesc="C++ Qt based Twitter library"
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/minimoog/QTweetLib"
|
|
license=('GPL2')
|
|
depends=('qjson')
|
|
makedepends=('cmake')
|
|
provides=('qtweetlib')
|
|
conflicts=('qtweetlib-git')
|
|
options=(!strip)
|
|
source=(https://github.com/downloads/minimoog/QTweetLib/QTweetLib-$pkgver.tar.gz)
|
|
md5sums=('a37055e7c081049294efb42126933cef')
|
|
|
|
# Clean options array to strip pkg if release buildtype is chosen
|
|
if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
|
|
options=()
|
|
fi
|
|
|
|
build(){
|
|
msg "Starting build..."
|
|
|
|
rm -rf ${srcdir}/${pkgname}-build
|
|
mv ${srcdir}/minimoog-QTweetLib-${_rev} ${srcdir}/${pkgname}-build
|
|
cd ${srcdir}/${pkgname}-build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|