updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / gnome-theme-split / PKGBUILD
blob197fcc6c40ec44639bbba9badd00d2285fac1bd8
1 # Contributor: Jib <jbc.as (AT) free.fr>
2 # Last update: 01/28/2011
4 pkgname=gnome-theme-split
5 _pkgname=split-theme
6 pkgver=1.5.1
7 pkgrel=2
8 pkgdesc="Split theme for Gnome."
9 arch=(any)
10 license=('GPL')
11 depends=('gtk-engine-murrine>=0.98' 'xcursor-vanilla-dmz')
12 optdepends=('slim-theme-split: matching theme for slim login manager')
13 source=(https://launchpad.net/~bisigi/+archive/ppa/+files/split-theme_1.5.1.maverick.ppa2.tar.gz
14         arch-icon-64.svg
15         arch-icon-48.svg
16         arch-icon-24.svg
17         arch-icon-22.svg
18         arch-icon-16.svg
19         split.patch)
20 install=('split.install')
21 url="http://www.bisigi-project.org"
22 md5sums=('cf5c204758cb1f1a3e05859ae7bb23fe'
23          '7b6cf784aa57bb00627d6c5671370490'
24          'd9ca3f533d8f1f4d6a39151287694215'
25          '58cf478d63320c2b6dc4671b908cfeb1'
26          '8e7fee479f2712662dbc796dd714bef1'
27          '18b79fde3758cce58d421ba3c2933e1d'
28          '202266f8a6a0e31683f99f6221f5be33')
30 package() {
31    cd ${srcdir}/Maverick
32    # install dirs
33    install -d ${pkgdir}/usr/share/{themes,icons,pixmaps/backgrounds/gnome/other,gnome-background-properties,doc/bisigi/split}
35    tar -xzf Gtk/split.tar.gz -C Gtk/
36    #Icons theme
37    echo "Unpacking icons..."
38    tar -xjf Icons/split.tar.bz2 -C Icons/
39    # remove svg that prevent arch logo to be displayed in main menu
40    rm -f Icons/split/apps/{22,24}/start-here.svg
41    rm -f Icons/split/{AUTHORS,COPYING}
42    local _w=""
43    for _w in {16,22,24,48,64} ; do
44       cd ${srcdir}/Maverick/Icons/split/places/$_w
45       rm -f {distributor-logo,gnome-main-menu,novell-button}.svg
46       install -D -m644 ${startdir}/arch-icon-$_w.svg start-here.svg
47       ln -s start-here.svg distributor-logo.svg
48       ln -s start-here.svg gnome-main-menu.svg
49       ln -s start-here.svg novell-button.svg
50    done
51    cd ${srcdir}/Maverick
52    # install files
53    patch -Np0 <${srcdir}/split.patch
54    cp -R Gtk/split/ ${pkgdir}/usr/share/themes/
55    cp -R Icons/split/ ${pkgdir}/usr/share/icons
56    install -D -m644 Wallpaper/split.jpg ${pkgdir}/usr/share/pixmaps/backgrounds/gnome/other
57    install -D -m644 Wallpaper/split-wallpaper.xml ${pkgdir}/usr/share/gnome-background-properties
58    install -D -m644 credits ${pkgdir}/usr/share/doc/bisigi/split/credits.txt