[arch-commits] Commit in grantlee/trunk (PKGBUILD)
Andrea Scarpino
andrea at archlinux.org
Fri Sep 19 11:55:05 UTC 2014
Date: Friday, September 19, 2014 @ 13:55:05
Author: andrea
Revision: 222091
upgpkg: grantlee 0.5.0-1
Upstream release
Modified:
grantlee/trunk/PKGBUILD
----------+
PKGBUILD | 44 +++++++++++++++++++++++++++++++++-----------
1 file changed, 33 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-19 11:44:26 UTC (rev 222090)
+++ PKGBUILD 2014-09-19 11:55:05 UTC (rev 222091)
@@ -1,31 +1,53 @@
# $Id$
# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-pkgname=grantlee
-pkgver=0.4.0
+pkgbase=grantlee
+pkgname=('grantlee-qt4' 'grantlee-qt5')
+pkgver=0.5.0
pkgrel=1
pkgdesc="A string template engine based on the Django template system and written in Qt"
arch=('i686' 'x86_64')
-url="http://www.gitorious.org/grantlee/pages/Home"
+url="https://www.gitorious.org/grantlee/pages/Home"
license=('LGPL3')
-depends=('qt4')
-makedepends=('cmake' 'doxygen')
-source=("http://downloads.grantlee.org/${pkgname}-${pkgver}.tar.gz")
-md5sums=('fa8a2e9be7be7e3a89e700679e6f3014')
+makedepends=('qt4' 'qt5-script' 'cmake' 'doxygen')
+source=("http://downloads.grantlee.org/${pkgbase}-${pkgver}.tar.gz")
+md5sums=('3664b26b747be69ae77aae89829d1db1')
prepare() {
- mkdir build
+ mkdir build{,-qt4}
}
build() {
cd build
- cmake ../${pkgname}-${pkgver} \
+ cmake ../${pkgbase}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTS=OFF \
+ -DGrantlee_Qt5_TRANSITIONAL=ON
make
+
+ cd ../build-qt4
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTS=OFF \
+ -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
+ make
}
-package() {
+package_grantlee-qt5() {
+ depends=('qt5-script')
+
cd build
make DESTDIR="${pkgdir}" install
}
+
+package_grantlee-qt4() {
+ depends=('qt4')
+ replaces=('grantlee')
+ conflicts=('grantlee')
+ provides=('grantlee')
+
+ cd build-qt4
+ make DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list