core/telepathy-qt/PKGBUILD

61 lines
1.5 KiB
Bash
Raw Normal View History

2015-04-08 04:36:34 +08:00
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/telepathy-qt
2015-04-08 04:36:34 +08:00
pkgbase=telepathy-qt
pkgname=('telepathy-qt4' 'telepathy-qt5')
2014-10-20 09:24:51 +08:00
pkgver=0.9.5
pkgrel=1
2013-04-04 19:47:39 +08:00
arch=('x86_64')
2015-04-08 04:36:34 +08:00
url="http://telepathy.freedesktop.org/wiki/"
license=('LGPL')
2015-04-08 04:36:34 +08:00
makedepends=('qt4' 'telepathy-farstream' 'libxslt' 'python2' 'cmake' 'doxygen' 'qt5-base')
2014-10-20 09:24:51 +08:00
options=('staticlibs')
2015-04-08 04:36:34 +08:00
source=("http://telepathy.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
md5sums=('22c0daa7e4f7e48e779f703c9b27b816')
2014-07-27 18:38:16 +08:00
prepare() {
2015-04-08 04:36:34 +08:00
mkdir build{,-qt4}
2014-07-27 18:38:16 +08:00
}
2014-07-27 18:38:16 +08:00
build() {
2015-04-08 04:36:34 +08:00
cd build
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DENABLE_EXAMPLES=OFF \
-DENABLE_TESTS=OFF \
2015-04-08 09:05:25 +08:00
-DDESIRED_QT_VERSION=5 \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5
2015-04-08 04:36:34 +08:00
make
cd ..
cd build-qt4
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DDESIRED_QT_VERSION=4 \
-DENABLE_EXAMPLES=OFF \
-DENABLE_TESTS=OFF
make
}
package_telepathy-qt4() {
pkgdesc="A library for Qt4-based Telepathy clients"
depends=('qt4' 'telepathy-farstream')
conflicts=('telepathy-qt')
replaces=('telepathy-qt')
provides=('telepathy-qt')
cd build-qt4
make DESTDIR="$pkgdir" install
}
2015-04-08 04:36:34 +08:00
package_telepathy-qt5() {
pkgdesc="A library for Qt5-based Telepathy clients"
depends=('qt5-base' 'telepathy-farstream')
2015-04-08 09:05:25 +08:00
cd $srcdir/build
2015-04-08 04:36:34 +08:00
make DESTDIR="$pkgdir" install
}