Trinity Desktop Environment Packaging - Arch Linux pkgbuild's
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD.template 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Maintainer: Michael Manley <mmanley@nasutek.com>
  2. # Contributor: David C. Rankin <drankinatty at gmail dot com>
  3. _mod=tdepowersave
  4. _cat=applications/
  5. _kdemod="${_mod/tde/kde}"
  6. pkgname="tde-$_mod"
  7. pkgver=14.0.5
  8. pkgrel=1
  9. pkgdesc="Trinity Desktop Enviroment $_cat$_mod"
  10. arch=('i686' 'x86_64')
  11. url="http://scm.trinitydesktop.org/scm/git/$_mod"
  12. license=('GPL')
  13. provides=("$_mod")
  14. groups=('tde-complete')
  15. depends=(
  16. 'tde-tdelibs'
  17. )
  18. makedepends=(
  19. 'autoconf'
  20. 'cmake'
  21. 'pkgconfig'
  22. )
  23. optdepends=()
  24. confilicts=("trinity-$_kdemod" "kdemod3-$_kdemod")
  25. replaces=("trinity-$_mod")
  26. options=('staticlibs' 'libtool' '!strip')
  27. install=
  28. source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R$pkgver/$_cat$_mod-R$pkgver.tar.bz2")
  29. build() {
  30. cd "${srcdir}/${_cat}${_mod}"
  31. msg "Setting PATH, CMAKE and Trinity Environment variables"
  32. # Source the QT and TDE profile
  33. [ "$QTDIR" = "" ] && . /etc/profile.d/tqt3.sh
  34. [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh
  35. msg "Creating out-of-source build directory: ${srcdir}/build"
  36. mkdir -p "$srcdir/build"
  37. cd "$srcdir/build"
  38. msg "Starting cmake..."
  39. cmake ${srcdir}/${_cat}${_mod} \
  40. -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
  41. -DSYSCONF_INSTALL_DIR=${TDEDIR}/etc \
  42. -DBUILD_ALL=ON \
  43. -DWITH_GCC_VISIBILITY=ON
  44. make $NUMJOBS
  45. }
  46. package() {
  47. msg "Packaging - $pkgname-$pkgver"
  48. cd "$srcdir/build"
  49. make -j1 DESTDIR="$pkgdir" install
  50. }