core/telepathy-qt/PKGBUILD

76 lines
2.2 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')
2016-03-23 16:23:04 +08:00
pkgver=0.9.6.1
2014-10-20 09:24:51 +08:00
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')
2016-03-23 16:23:04 +08:00
source=("http://telepathy.freedesktop.org/releases/${pkgbase}/${pkgbase}-${pkgver}.tar.gz"{,.asc}
2016-03-21 06:01:30 +08:00
'0001-CMake-Fixed-deprecated-_BSD_SOURCE.patch'
'0002-CMakeLists-Minimum-version-bumped-to-2.8.12.patch'
'0021-Farstream-gst-gstconfig.h-can-be-in-LIBDIR-search-fo.patch')
2016-03-23 16:23:04 +08:00
md5sums=('bebebfbe29d194a9ba00b4f422a44f74'
'SKIP'
2016-03-21 06:01:30 +08:00
'114e5f9747fe218f7e08864d67515b74'
'2ce35b9e77326324a747e38a3f54a14a'
'18ed8c6671e21c34e8cb354b40eb7944')
2016-03-23 16:23:04 +08:00
validpgpkeys=('AA33B0D27868E36C151780F0FE0B6D736B1195ED') # Alexandr Akulich
2014-07-27 18:38:16 +08:00
prepare() {
2016-03-21 06:01:30 +08:00
[ -d build ] && rm -r build
[ -d build-qt4 ] && rm -r build-qt4
2015-04-08 04:36:34 +08:00
mkdir build{,-qt4}
2016-03-21 06:01:30 +08:00
cd "$pkgbase-$pkgver"
patch -Np1 -i ../0001-CMake-Fixed-deprecated-_BSD_SOURCE.patch
patch -Np1 -i ../0002-CMakeLists-Minimum-version-bumped-to-2.8.12.patch
patch -Np1 -i ../0021-Farstream-gst-gstconfig.h-can-be-in-LIBDIR-search-fo.patch
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
}