updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / xcursor-nintendo-wii / PKGBUILD
blob62204b12f9e17a7bcf714a6512e8ee2f92e9bae1
1 # Maintainer: flan_suse <windows2linux AT zoho DOT com>
2 pkgname=xcursor-nintendo-wii
3 pkgver=0.3.1
4 pkgrel=2
5 pkgdesc="Nintendo Wii controller cursor theme"
6 arch=('any')
7 url="http://gnome-look.org/content/show.php/Wii+Cursors?content=100367"
8 license=('CCPL')
9 groups=()
10 depends=()
11 source=('http://gnome-look.org/CONTENT/content-files/100367-WiiCursors-0.3.1.tar.bz2')
12 md5sums=('3fa928f448f974bc1bea15e30777bca6')
14 build() {
15     
16     # Move into source directory
17     cd "${srcdir}"
19     # Fix the file and folder permissions
20     for i in *CursorTheme
21     do
22         if [ -d $i ]
23         then
24             find "$i" -type d -exec chmod 755 '{}' \;
25             find "$i" -type f -exec chmod 644 '{}' \;
26         fi
27     done
29     # Create installation directories
30     install -d -m755 "${pkgdir}/usr/share/icons/"
32     # Install the cursor theme
33     for i in *CursorTheme
34     do
35         if [ -d $i ]
36         then
37             cp -rf "$i" "${pkgdir}/usr/share/icons/"
38         fi
39     done