updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xfce-theme-albatross / PKGBUILD
blob5404265578874ef3387ae2cbfca1851a7d786c30
1 # Maintainer: flan_suse <windows2linux AT zoho DOT com>
2 pkgname=xfce-theme-albatross
3 _pkgname=Albatross
4 pkgver=1.1
5 pkgrel=3
6 pkgdesc="A dark, smooth Xfce theme, introduced in the release of Xubuntu 9.10"
7 arch=('any')
8 url="http://shimmerproject.org/projects/albatross/"
9 license=('GPL3' 'CCPL')
10 groups=('xfce-themes-shimmer-collection')
11 depends=('gtk-engine-murrine')
12 makedepends=('git')
13 optdepends=('elementary-icons: matching icon set')
15 package() {
16     
17     # Clone git repository
18     git clone "git://github.com/shimmerproject/Albatross.git"
20     # Change into source directory
21     cd "$_pkgname"
23     # Checkout current git-tag release
24     git checkout "v$pkgver"
26     # Remove excess files and return to parent folder
27     rm -f ".gitignore"
28     rm -rf ".git"
29     rm -rf "shearwater"
30     rm -rf "xsplash"
31     rm -rf "usplash"
32     cd ..
34     # Create installation directories
35     install -d -m755 "${pkgdir}/usr/share/themes/"
36     install -d -m755 "${pkgdir}/usr/share/backgrounds/"
37     install -d -m755 "${pkgdir}/usr/share/xfce4/backdrops/"
39     # Copy the wallpaper to the correct directory, then remove the backdrops folder
40     cp -f "$_pkgname/backdrops/albatross-2009-10.png" "${pkgdir}/usr/share/backgrounds/$_pkgname.png"
41     rm -rf "$_pkgname/backdrops/"
43     # Install the rest of the theme
44     cp -rf "$_pkgname" "${pkgdir}/usr/share/themes/"
46     # Make a symbolic link inside of the Xfce backdrops directory, for use with Desktop Settings
47     cd "${pkgdir}/usr/share/xfce4/backdrops/"
48     ln -s "../../backgrounds/$_pkgname.png" "$_pkgname.png"