updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / bespin-icons-black-svn / PKGBUILD
blob0640415ad9ade6e062e3f39ab3cbc98c1871c443
1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
2 pkgname=bespin-icons-black-svn
3 pkgver=1217
4 pkgrel=1
5 pkgdesc="Bespin black icon theme"
6 arch=(any)
7 url="http://kde-look.org/content/show.php/Bespin?content=63928"
8 license=('LGPL')
9 makedepends=('inkscape' 'imagemagick')
10 _svntrunk="https://cloudcity.svn.sourceforge.net/svnroot/cloudcity"
11 _svnmod="bespin"
13 _color=black
14 _basename=bespin
16 build() {
17   cd ${srcdir}
19   if [[ -d ${_svnmod}/.svn ]]; then
20      (cd ${_svnmod} && svn up -r $pkgver)
21   else
22      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
23   fi
25   msg "SVN checkout done or server timeout"
26   rm -rf ${srcdir}/${_svnmod}-build
27   cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
29   install -d $pkgdir/usr/share/icons/
30   cd $srcdir/$_svnmod-build/icons/
31   echo "basename=$_basename" >> config
32   echo "color=$_color" >> config
33   echo "halo=white" >> config
34   echo "alpha=85" >> config
35   echo "" >> config
36   ./generate_kde_icons.sh
37   cp -r $srcdir/$_svnmod-build/icons/$_basename-$_color $pkgdir/usr/share/icons/