Skip to content
Snippets Groups Projects
Commit 4217c7a7 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/qt5-qtquick1: fix qt4 conflict

parent b5e01a82
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ _ver=${pkgver/_/-} ...@@ -5,7 +5,7 @@ _ver=${pkgver/_/-}
_ver=${_ver/beta0/beta} _ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc} _ver=${_ver/rc0/rc}
_V=${_ver/rc/RC} _V=${_ver/rc/RC}
pkgrel=0 pkgrel=1
pkgdesc="A declarative language for describing user interfaces in Qt5" pkgdesc="A declarative language for describing user interfaces in Qt5"
url="http://qt-project.org/" url="http://qt-project.org/"
arch="all" arch="all"
...@@ -21,6 +21,7 @@ case $pkgver in ...@@ -21,6 +21,7 @@ case $pkgver in
esac esac
source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquick1-opensource-src-$_V.tar.xz" source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquick1-opensource-src-$_V.tar.xz"
_qt5_prefix=/usr/lib/qt5
_builddir="$srcdir"/qtquick1-opensource-src-$_V _builddir="$srcdir"/qtquick1-opensource-src-$_V
prepare() { prepare() {
local i local i
...@@ -34,13 +35,17 @@ prepare() { ...@@ -34,13 +35,17 @@ prepare() {
build() { build() {
cd "$_builddir" cd "$_builddir"
qmake && make qmake-qt5 && make
} }
package() { package() {
cd "$_builddir" cd "$_builddir"
make install INSTALL_ROOT="$pkgdir" || return 1 make install INSTALL_ROOT="$pkgdir" || return 1
rm "$pkgdir"/usr/lib/*.la || return 1 rm "$pkgdir"/usr/lib/*.la || return 1
mkdir -p "$pkgdir"/usr/bin/
for i in "$pkgdir"/$_qt5_prefix/bin/*; do
ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5 || return 1
done
} }
md5sums="16d711d20238e3220fc4030dab608f0b qtquick1-opensource-src-5.4.1.tar.xz" md5sums="16d711d20238e3220fc4030dab608f0b qtquick1-opensource-src-5.4.1.tar.xz"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment