summaryrefslogtreecommitdiffstats
path: root/arch/extras/cmake_PKGBUILD
diff options
context:
space:
mode:
authorPawel "l0ner" Soltys <sh4dou@gmail.com>2011-12-18 19:07:20 +0100
committerPawel "l0ner" Soltys <sh4dou@gmail.com>2011-12-18 19:07:20 +0100
commit620523010a822e93be02bdb3e375c11fe51ebae4 (patch)
tree3606450fd006fce129eca3ed6342e5f4da4c38e2 /arch/extras/cmake_PKGBUILD
parent2130815b4ab2359f9ad1024c8a5a40414710f5a9 (diff)
downloadtde-packaging-620523010a822e93be02bdb3e375c11fe51ebae4.tar.gz
tde-packaging-620523010a822e93be02bdb3e375c11fe51ebae4.zip
little modifiactions to base components PKGBUILDs,
removed dropped things added PKGBUILD templates fixed kde-style-lipstik PKGBUILD
Diffstat (limited to 'arch/extras/cmake_PKGBUILD')
-rw-r--r--arch/extras/cmake_PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/arch/extras/cmake_PKGBUILD b/arch/extras/cmake_PKGBUILD
new file mode 100644
index 000000000..5ba8e651b
--- /dev/null
+++ b/arch/extras/cmake_PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Calvin Morrison <mutantturkey@gmail.com>
+
+pkgname=trinity-pkname
+pkgver=3513
+pkgrel=1
+
+arch=('i686' 'x86_64')
+
+url='http://www.trinitydesktop.org'
+license=('GPL')
+groups=('trinity-extras')
+pkgdesc="Trinity - pkgdesc"
+
+depends=('trinity-kdelibs')
+makedepends=('pkgconfig' 'cmake' 'imake')
+optdepends=()
+
+provides=($pkgname)
+confilcts=()
+replaces=()
+
+options=('libtool' '!strip')
+
+source=(http://mirror.its.uidaho.edu/pub/trinity/releases/3.5.13/applications/pkname-3.5.13.tar.gz)
+md5sums=('')
+
+_svnmod=applications/kpowersave
+_builddir=build
+_prefix="/opt/trinity"
+
+build() {
+ msg "Setting PATH, CMAKE and Trinity Environment variables"
+ export CMAKE_PREFIX_PATH=${QTDIR}:${_prefix}
+ export CMAKE_INCLUDE_PATH=${QTDIR}/include:${QTDIR}/include/tqt:/usr/include/dbus-1.0:${_prefix}/include:${_prefix}/include/libkrandr
+ export LD_LIBRARY_PATH=${_prefix}/lib:${_prefix}/lib/trinity:$LD_LIBRARY_PATH
+ export PKG_CONFIG_PATH=${_prefix}/lib/pkgconfig:${QTDIR}/lib/pkgconfig
+
+# patch
+# msg "Patching..."
+# patch -N -d ${srcdir} -p0 < ${srcdir}/pkname.patch
+
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/${_builddir}"
+ mkdir -p ${_builddir}
+ cd ${_builddir}
+
+ msg "Starting cmake..."
+ cmake ${srcdir}/${_svnmod} \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DQT_VERSION=3 \
+ -DWITH_QT3=ON \
+ -DQTDIR=${QTDIR} \
+ -DQT_DOCDIR=${QTDIR}/man \
+ -DQT_LIBRARY_DIRS=${QTDIR}/lib \
+ -DBUILD_ALL=ON
+
+ msg "Building - $pkgname..."
+ make
+}
+
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/${_builddir}
+ make DESTDIR="${pkgdir}" install
+}