diff options
author | Vinícius dos Santos Oliveira | 2015-06-14 02:22:09 -0300 |
---|---|---|
committer | Vinícius dos Santos Oliveira | 2015-06-14 02:22:09 -0300 |
commit | c1fa964bb642ce1deebc2a3752568d5ceef8ea22 (patch) | |
tree | deb7a0739cc993c2fca4351485fefc9048f220fa | |
download | aur-tufao-plugin.tar.gz |
Genesis commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 67 |
2 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..953bc00ef0a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = tufao-plugin + pkgdesc = A QtCreator plugin to work with Tufão. + pkgver = 0.2.6 + pkgrel = 3 + url = https://github.com/vinipsmaker/tufao-qtcreatorplugin + arch = i686 + arch = x86_64 + license = LGPL3 + makedepends = git + makedepends = mesa + makedepends = clang + depends = qtcreator=3.1.0 + source = http://download.qt-project.org/official_releases/qtcreator/3.1/3.1.0/qt-creator-opensource-src-3.1.0.tar.gz + source = https://github.com/vinipsmaker/tufao-qtcreatorplugin/archive/0.2.6.tar.gz + md5sums = ec63e30eaa72f1ae1604fc86826ddb23 + md5sums = eff1bd9fae77ad43f62c30ea285bb3e6 + +pkgname = tufao-plugin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..39411055c7d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com> +pkgname=tufao-plugin +pkgver=0.2.6 +pkgrel=3 +pkgdesc="A QtCreator plugin to work with Tufão." +arch=('i686' 'x86_64') +url="https://github.com/vinipsmaker/tufao-qtcreatorplugin" +license=('LGPL3') + +_qtcreatorversion='3.1.0' + +depends=("qtcreator=${_qtcreatorversion}") +makedepends=( + # For qtcreator + 'git' + 'mesa' + 'clang') +source=(#"qt-creator-opensource-src-${_qtcreatorversion}::git://gitorious.org/qt-creator/qt-creator.git#tag=v3.1.0-beta1" + #"git://gitorious.org/qt-labs/qbs.git" + "http://download.qt-project.org/official_releases/qtcreator/$(echo ${_qtcreatorversion} | grep -Eoe '[[:digit:]]+\.[[:digit:]]+')/${_qtcreatorversion}/qt-creator-opensource-src-${_qtcreatorversion}.tar.gz" + "https://github.com/vinipsmaker/tufao-qtcreatorplugin/archive/${pkgver}.tar.gz") +md5sums=('ec63e30eaa72f1ae1604fc86826ddb23' + 'eff1bd9fae77ad43f62c30ea285bb3e6') + +prepare() { + cd "$srcdir" + [ -d tufao ] || mv "tufao-qtcreatorplugin-${pkgver}" tufao + + #cd "qt-creator-opensource-src-${_qtcreatorversion}" + #git submodule init + #git config submodule.qbs.url $srcdir/qbs + #git submodule update +} + +build() { + if [ -z "$QTC_BUILD" ]; then + if [ -z "$QTC_SOURCE" ]; then + export QTC_SOURCE="$srcdir/qt-creator-opensource-src-${_qtcreatorversion}" + fi + cd "$QTC_SOURCE" + + export QTC_BUILD="${QTC_SOURCE}/build" + + mkdir -p "$QTC_BUILD" + cd "$QTC_BUILD" + LLVM_INSTALL_DIR=/usr qmake -r "$QTC_SOURCE/qtcreator.pro" + make + fi + + cd "$srcdir/tufao" + qmake + make +} + +package() { + if [ -z "$QTC_BUILD" ]; then + if [ -z "$QTC_SOURCE" ]; then + export QTC_SOURCE="$srcdir/qt-creator-opensource-src-${_qtcreatorversion}" + fi + + export QTC_BUILD="$QTC_SOURCE/build" + fi + + cd "${QTC_BUILD}/lib/qtcreator/plugins" + mkdir -p "$pkgdir/usr/lib/qtcreator/plugins" + cp -r TufaoTeam "$pkgdir/usr/lib/qtcreator/plugins" +} |