summaryrefslogtreecommitdiffstats
path: root/arch/3.5.13/trinity-extras/trinity-kdesdk/PKGBUILD
blob: b7cec01c2b18910da1e5b8c93f1f986d53ede9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: Pawel 'l0ner' Soltys <pwslts@gmail.com>
# Contributor: Calvin Morrison <mutantturkey@gmail.com>

pkgname=trinity-kdesdk
pkgver=3513
pkgrel=2
arch=('i686' 'x86_64')
url='http://www.trinitydesktop.org'
license=('GPL')
groups=('trinity-extras')
pkgdesc="Trinity Software Developement Kit"
depends=('trinity-kdebase' 'subversion')
makedepends=('pkgconfig' 'cmake' 'imake')
options=('libtool' '!strip')
source=('http://mirror.ets.kth.se/trinity/releases/3.5.13/kdesdk-3.5.13.tar.gz' 'kdesdk.patch')
source=('http://anduin.linuxfromscratch.org/sources/trinity/kdesdk-3.5.13.tar.gz' 'kdesdk.patch')
md5sums=('130662f683be1a49d56a713c5ae87e46'
         'a1d0b533ae427847bd84e601c587f882')

build() {
   msg "Setting PATH, CMAKE and Trinity Environment variables"
   [ "$QTDIR" = "" ] && . /etc/profile.d/qt3.sh
   [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh

   patch -N -d ${srcdir} -p0 < kdesdk.patch

   cd $srcdir/kdesdk

   msg "Starting configure..."
   cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
   cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
   sed -i -e "s@/usr/include/tqt@$TDEDIR/include/tqt@" admin/acinclude.m4.in
   make -f admin/Makefile.common

   msg "Starting configure..."
   ./configure --with-qt-dir=${QTDIR} \
      --prefix=${TDEDIR} \
      --enable-closure \
      --with-berkeley-db \
      --with-subversion
      #--with-extra-includes=${TDEDIR}/include:/usr/include/dbus-1.0:${TDEDIR}/include/libkrandr \
      #--with-extra-libs=${TDEDIR}/lib:${TDEDIR}/lib/trinity:${TDEDIR}/pkgconfig \

   make

   #msg "Starting cmake..."
   #cmake ${srcdir}/kdesdk \
   #  -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
   #  -DCMAKE_VERBOSE_MAKEFILE=ON \
   #  -DWITH_DBSEARCHENGINE=ON \
   #  -DWITH_KCAL=ON \
   #  -DBUILD_ALL=ON
   #make

   #--with-berkeley-db      enable the dictionary plugin based on Berkeley DB IV
   #--with-db-dir=DIR       where the root of Berkeley DB IV is installed
   #--with-db-include-dir=DIR where the includes of Berkeley DB IV are installed
   #--with-db-include=FILE  path to the Berkeley DB IV header file
   #--with-db-lib-dir=DIR   where the libs of Berkeley DB IV are installed
   #--with-db-name=NAME     name of the Berkeley DB IV library (default db)
   
   #--with-subversion       enable support for subversion [default=check]
   #--with-apr-config=FILE    Use the given path to apr-config when determining APR configuration; defaults to "apr-config"
   #--with-apu-config=FILE    Use the given path to apu-config when determining APR util configuration; defaults to "apu-config"
   #--with-subversion-dir=DIR           where Subversion is installed
   #--with-svn-include=DIR   Use the given path to the subversion headers.
   #--with-svn-lib=DIR

}

package() {
  msg "Packaging - $pkgname-$pkgver"
  cd ${srcdir}/kdesdk
  make DESTDIR="$pkgdir" install
}