updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bulletcandyperfect / PKGBUILD
blob00bd63616c397bff26bc7ca737a5791d674cd725
1 # Contributor: Artificial Intelligence <polarbeard@gmail.com>
3 pkgname=bulletcandyperfect
4 pkgver=1.00
5 pkgrel=2
6 pkgdesc="Bullet Candy Perfect is a fun shoot-em-up game, with sharp, super smooth 3D graphics and a cool techno soundtrack. The game is all about honing your skills to perfection as you attempt the perfect run!"
7 arch=('i686' 'x86_64')
8 url='http://www.charliesgames.com/wordpress/?page_id=203'
9 license=('custom: "commercial"')
10 install=bulletcandyperfect.install
11 if [ "$CARCH" = "x86_64" ]; then
12         depends=('lib32-freetype2' 'lib32-libxxf86vm' 'lib32-mesa' 'lib32-libxrandr' 'lib32-gcc-libs')
13 else
14         depends=('freetype2' 'libxxf86vm' 'mesa' 'libxrandr' 'gcc-libs')
16 source=('BulletCandyPerfectLinuxFull.tar.gz' 'BulletCandyPerfect.png' 'bulletcandyperfect.desktop' 'bulletcandyperfect.launcher')
17 md5sums=('9275f2806dceac2011afb71332980874' '6c6691e00f414625bd564519c4a7064b' '322dc8fc2713246b9eee3ddce6f31907' 'e43ef0638d57de822ba4786e595f3e2e')
20 build() {
21     cd $srcdir || return 1
23 # Create Destination Directory
24     install -d -m 755 $pkgdir/opt/BulletCandyPerfect || return 1
26 # Extract Game 
27     bsdtar -xf $srcdir/BulletCandyPerfectLinuxFull.tar.gz || return 1
29            cd $srcdir/BulletCandyPerfectLinuxFull || return 1
30            cp -r "Bullet Candy Perfect" $srcdir/BulletCandyPerfectLinuxFull/BulletCandyPerfect || return 1
31            rm -r "Bullet Candy Perfect" || return 1
33     cd $srcdir || return 1
35 # Install the data
36     cp -r $srcdir/BulletCandyPerfectLinuxFull/* $pkgdir/opt/BulletCandyPerfect || return 1
38 # Install Icon
39     install -D -m 644 $srcdir/BulletCandyPerfect.png \
40         $pkgdir/usr/share/pixmaps/BulletCandyPerfect.png || return 1
42 # Install Launcher
43     install -D -m 644 $srcdir/bulletcandyperfect.desktop \
44         $pkgdir/usr/share/applications/bulletcandyperfect.desktop || return 1
46 # Install Game Launcher
47     install -D -m 755 $srcdir/bulletcandyperfect.launcher \
48         $pkgdir/usr/bin/bulletcandyperfect || return 1
50 # Set groupship to :games
51     chown -R :games $pkgdir/opt/BulletCandyPerfect || return 1
52     chmod -R g+rwX $pkgdir/opt/BulletCandyPerfect || return 1