[arch-commits] Commit in libdbusmenu-qt/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Jun 19 09:19:53 UTC 2015
Date: Friday, June 19, 2015 @ 11:19:52
Author: arojas
Revision: 241030
Update to 0.9.3+15.10.20150604, merge qt4 and qt5 versions
Modified:
libdbusmenu-qt/trunk/PKGBUILD
----------+
PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 38 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-19 04:44:31 UTC (rev 241029)
+++ PKGBUILD 2015-06-19 09:19:52 UTC (rev 241030)
@@ -1,31 +1,54 @@
# $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
-pkgname=libdbusmenu-qt
-pkgver=0.9.2
-pkgrel=3
+pkgbase=libdbusmenu-qt
+pkgname=(libdbusmenu-qt4 libdbusmenu-qt5)
+pkgver=0.9.3+15.10.20150604
+pkgrel=1
pkgdesc="A library that provides a Qt implementation of the DBusMenu spec"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
url="https://launchpad.net/libdbusmenu-qt"
-license=('GPL')
-depends=('qt4')
-makedepends=('cmake' 'doxygen' 'qjson')
-source=("http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('9a49484927669cd2ec91b3bf9ba8b79e')
+license=(GPL)
+makedepends=(cmake doxygen qjson qt4 qt5-base)
+source=("http://archive.ubuntu.com/ubuntu/pool/main/libd/$pkgbase/${pkgbase}_$pkgver.orig.tar.gz")
+md5sums=('d6fe90fe530a926b9db505da11e2c354')
prepare() {
- mkdir build
+ mkdir -p build{-qt4,}
}
build() {
cd build
- cmake ../${pkgname}-${pkgver} \
+ cmake ../$pkgbase-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_LIBDIR=lib
make
+
+ cd ../build-qt4
+ cmake ../$pkgbase-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DUSE_QT4=On
+ make
}
-package() {
+package_libdbusmenu-qt4() {
+ pkgdesc="A library that provides a Qt4 implementation of the DBusMenu spec"
+ depends=(qt4)
+ conflicts=(libdbusmenu-qt)
+ provides=(libdbusmenu-qt)
+ replaces=(libdbusmenu-qt)
+
+ cd build-qt4
+ make DESTDIR="$pkgdir" install
+}
+
+package_libdbusmenu-qt5() {
+ depends=(qt5-base)
+
cd build
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list