mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
62 lines
1.7 KiB
Bash
62 lines
1.7 KiB
Bash
# $Id$
|
|
# Contributor: jzellner <webmaster@nebulon.de>
|
|
# This package provides the master branch of QtBase 5
|
|
|
|
buildarch=4
|
|
|
|
pkgname=qtbase-git
|
|
pkgver=20120417
|
|
pkgrel=1
|
|
plugrel=1
|
|
pkgdesc="The C++ Qt GUI framework - current development snapshot (master branch)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.qt-project.org"
|
|
license=('GPL3' 'LGPL')
|
|
|
|
depends=('libpng' 'mesa' 'fontconfig' 'libtiff' 'libmng' 'sqlite3' 'libxrandr' 'glib2' 'libxi' 'dbus' 'libxcursor' 'libxinerama' 'libxrender')
|
|
optdepends=('postgresql-libs' 'libmysqlclient' 'unixodbc')
|
|
makedepends=('inputproto' 'postgresql-libs' 'mysql' 'unixodbc' 'cups' 'libxfixes' 'gtk2' 'git')
|
|
provides=('qtbase')
|
|
replaces=()
|
|
conflicts=()
|
|
options=()
|
|
source=()
|
|
md5sums=()
|
|
|
|
_gitroot="git://gitorious.org/qt/qtbase.git"
|
|
_gitname="qtbase"
|
|
|
|
build() {
|
|
msg "Connecting to git server...."
|
|
|
|
if [ -d ${srcdir}/$_gitname ] ; then
|
|
cd $_gitname
|
|
git reset --hard HEAD
|
|
git clean -fxd
|
|
git pull origin
|
|
|
|
msg "The local files have been updated to the current revision"
|
|
|
|
cd $srcdir/$_gitname
|
|
else
|
|
git clone $_gitroot --depth=1
|
|
|
|
cd $srcdir/$_gitname
|
|
|
|
sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
|
|
sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
|
|
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
|
|
fi
|
|
|
|
./configure -confirm-license -opensource -v -prefix /opt/qt5 -make libs \
|
|
|
|
# build qt master
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$_gitname
|
|
|
|
#install everything
|
|
make INSTALL_ROOT=$pkgdir install
|
|
}
|