updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / the-binding-of-isaac / PKGBUILD
blobd1e614ee7b93721dbace6b09e959b12e9cd18913
1 # Maintainer: D. Can Celasun <dcelasun[at]gmail[dot]com>
3 pkgname=the-binding-of-isaac
4 pkgver=20111101
5 pkgrel=3
6 pkgdesc="A randomly generated action RPG shooter with heavy Rogue-like elements."
7 url="http://www.bindingofisaac.com"
8 license=('custom: "commercial"')
9 arch=('i686' 'x86_64')
11 [ "${CARCH}" = "x86_64" ] && depends=('lib32-sqlite3' 'lib32-libidn' 'lib32-libxt' 'lib32-libxxf86vm' 'lib32-gtk2' 'lib32-nss' 'lib32-curl') \
12 && optdepends=('lib32-libvdpau: For flash player hardware acceleration')
13 [ "${CARCH}" = "i686" ] && depends=('sqlite3' 'libidn' 'libxt' 'libxxf86vm' 'gtk2' 'nss' 'curl')\
14 && optdepends=('libvdpau: For flash player hardware acceleration') 
15 options=(!strip)
16 source=("isaac.desktop" "isaac.png")
18 _gamepkg="binding-of-isaac_${pkgver}_i386.tar.gz"
19 md5sums=('bd7ab23bafd88705b42c0c328f8f6717'
20          'bbc59b1fabb6036e4db450811bd3ab39')
21 build() {
22    cd "${srcdir}"
23    msg "You need a full copy of this game in order to install it"
24    msg "Searching for ${_gamepkg} in dir: $(readlink -f `pwd`/..)"
25    if [[ -f "../${_gamepkg}" ]]; then
26        msg "Found game package, installing..."
27            ln -fs "../${_gamepkg}" .
28    else
29            error "Game package not found, please type absolute path to ${_gamepkg} (/home/joe):"
30        read pkgpath
31        if [[ -f "${pkgpath}/${_gamepkg}" ]]; then
32            msg "Found game package, installing..."
33                    ln -fs "${pkgpath}/${_gamepkg}" .
34            else
35                    error "Unable to find game package."
36                    return 1
37        fi
38    fi
39    tar zxvf ${_gamepkg}
42 package(){
43   cd "${srcdir}"
44   # create Launcher
45   install -d "${pkgdir}/usr/bin/"
46   install -D -m755 "${srcdir}/isaac" "${pkgdir}/usr/bin/isaac"
47   # Install Desktop File and Icon
48   install -D -m644 "${srcdir}/isaac.desktop" \
49         "${pkgdir}/usr/share/applications/isaac.desktop"
50   install -D -m644 "${srcdir}/isaac.png" \
51                 "${pkgdir}/usr/share/icons/isaac.png"