updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / xcursor-lcd-colors / PKGBUILD
blobb5318f3624b77eb20e2efd0620dec3d05c9f6fe2
1 # Maintainer: flan_suse <windows2linux AT zoho DOT com>
3 # The LCD-Grey cursor theme is not included, because it
4 # is not hosted on GNOME-look.org, but rather a web site
5 # which is not as reliable.
7 # If you are interested in the LCD-Grey version, you
8 # can find it here, where the author uploaded it:
9 # http://d2.myfreefilehosting.com/d2/LCDGrey.tar.gz
11 pkgname=xcursor-lcd-colors
12 pkgver=20110130
13 pkgrel=1
14 pkgdesc="Beautifully animated glass-like cursor collection of four different colors"
15 arch=('any')
16 url="http://gnome-look.org/content/show.php/LCD+Colors?content=110545"
17 license=('GPL')
18 groups=()
19 depends=()
20 makedepends=('unrar')
21 source=('http://gnome-look.org/CONTENT/content-files/110545-LCDcolors.rar')
22 noextract=('110545-LCDcolors.rar')
23 md5sums=('5c13f2003724617e4ce5d29f007c3a74')
25 build() {
26     
27     # Move into source directory
28     cd "${srcdir}"
30     # Extract .tar.gz archives from within the .rar archive
31     unrar e -y 110545-LCDcolors.rar
33     # Clean up old extracted folders from ${srcdir} if they exist
34     for i in LCD-*
35     do
36         if [ -d $i ]
37         then
38             rm -rf $i
39         fi
40     done
42     # Extract all .tar.gz archives
43     for i in *.tar.gz
44     do
45         bsdtar -xf $i
46     done
48     # Create installation directories
49     install -d -m755 "${pkgdir}/usr/share/icons/"
51     # Install the four cursor themes
52     for i in LCD-*
53     do
54         if [ -d $i ]
55         then
56             cp -rf "$i" "${pkgdir}/usr/share/icons/"
57         fi
58     done