PKGBUILD 3.94 KB
Newer Older
Anke's avatar
Anke committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor Benjamin Mtz (cruznick) <cruznick at archlinux dot us>
# PKGBUILD based on: http://aur.archlinux.org/packages.php?ID=26800

# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
 
pkgbase=bespin-svn
pkgname=bespin-svn
#pkgname=('bespin-svn' 'bespin-svn-kdm-themes' 'bespin-svn-ksplash-themes ' 'bespin-black-icons')
Anke's avatar
Anke committed
15
pkgver=1355
Anke's avatar
Anke committed
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
pkgrel=1
pkgdesc="Qt4/KDE4 style"
arch=(i686 x86_64)
url="http://kde-look.org/content/show.php/Bespin?content=63928"
license=('LGPL')
depends=('qt' 'kdelibs')
optdepends=('kdebase-workspace')
makedepends=('cmake>=2.4' 'automoc4' 'subversion' 'kdebase-workspace')
provides=('bespin')
changelog=$pkgbase.changelog

_svntrunk="https://cloudcity.svn.sourceforge.net/svnroot/cloudcity"
_svnmod="bespin"

build() {
  cd ${srcdir}

  if [[ -d ${_svnmod}/.svn ]]; then
     (cd ${_svnmod} && svn up -r $pkgver)
  else
     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  rm -rf ${srcdir}/${_svnmod}-build
  cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
}
 
package_bespin-svn(){
  cd ${srcdir}/${_svnmod}-build

  cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DENABLE_ARGB=ON \
        -DCMAKE_BUILD_TYPE=Release || return 1
  make || return 1
  make DESTDIR=${pkgdir} install || return 1

  install -D ${srcdir}/${_svnmod}-build/man/bespin.1 ${pkgdir}/usr/share/man/man1/bespin.1
  install -D ${srcdir}/${_svnmod}-build/extras/bespin-compl ${pkgdir}/etc/bash_completion.d/bespin

}

package_bespin-svn-kdm-themes(){
pkgdesc="Bespin/tibanna Kdm Themes"
  mkdir -p $pkgdir/usr/share/apps/kdm/themes/Bespin
  cp -r $srcdir/$_svnmod-build/kdm/* $pkgdir/usr/share/apps/kdm/themes/Bespin/
  mv $pkgdir/usr/share/apps/kdm/themes/Bespin/tibanna $pkgdir/usr/share/apps/kdm/themes/
}

package_bespin-svn-ksplash-themes(){
pkgdesc="Bespin/Tibanna ksplash themes"
depends=liblqr
cd $srcdir/$_svnmod-build/ksplash

   #4:3
   ./generate.sh 640 480
   ./generate.sh 800 600
   ./generate.sh 1024 768
   ./generate.sh 1280 960
   ./generate.sh 1400 1050
   ./generate.sh 1600 1200
   
   #16:9
   ./generate.sh 1280 720
   ./generate.sh 1365 768
   ./generate.sh 1600 900
   ./generate.sh 1920 1080    

   #16:10
   ./generate.sh 1280 800
   ./generate.sh 1440 900
   ./generate.sh 1680 1050
   ./generate.sh 1920 1200

   cd $srcdir/$_svnmod-build/ksplash/tibanna
   #4:3
   ./generate.sh 640 480
   ./generate.sh 800 600
   ./generate.sh 1024 768
   ./generate.sh 1280 960
   ./generate.sh 1400 1050
   ./generate.sh 1600 1200

   #16:9
   ./generate.sh 1280 720
   ./generate.sh 1365 768
   ./generate.sh 1600 900
   ./generate.sh 1920 1080

   #16:10
   ./generate.sh 1280 800
   ./generate.sh 1440 900 
   ./generate.sh 1680 1050
   ./generate.sh 1920 1200

   mkdir -p $pkgdir/usr/share/apps/ksplash/Themes/Bespin
   cp -r $srcdir/$_svnmod-build/ksplash/* $pkgdir/usr/share/apps/ksplash/Themes/Bespin/
   mv $pkgdir/usr/share/apps/ksplash/Themes/Bespin/tibanna $pkgdir/usr/share/apps/ksplash/Themes/
}

package_bespin-black-icons(){
#depens=(inkscape) 
#_color=black
#_basename=bespin


# install -d $pkgdir/usr/share/icons/
#  cd $srcdir/$_svnmod-build/icons/
#  echo "basename=$_basename" >> config
#  echo "color=$_color" >> config
#  echo "halo=white" >> config
#  echo "alpha=85" >> config
#  echo "" >> config
#  ./generate_kde_icons.sh
#  cp -r $srcdir/$_svnmod-build/icons/$_basename-$_color $pkgdir/usr/share/icons/
###If you dont want to install inkscape in your sistem you can use this option
   cd $srcdir
   wget http://dl.dropbox.com/u/11529444/chakra/Bespin-Black.tar.gz
   tar -xvf Bespin-Black.tar.gz
    install -d $pkgdir/usr/share/icons/Bespin-Black
 # Install the data
     cp -r $srcdir/Bespin-Black/* $pkgdir/usr/share/icons/Bespin-Black

}