updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / rimshot / PKGBUILD
blob34173847594ac042f67907b45ab4d75446fe13d2
1 # Maintainer: Wido <widomaker2k7 [at] gmail [dot] com>
3 pkgname=rimshot
4 pkgver=1
5 pkgrel=2
6 pkgdesc="Rimshot was designed from ground up with a simple and intuitive interface in mind to allow the creation of any kinds of drumbeats."
7 arch=('any')
8 url="http://stabyourself.net/rimshot/"
9 license=('MIT')
10 depends=('love')
11 makedepends=('unzip')
12 source=(${pkgname}.sh ${pkgname}.desktop)
13 _gamepkg="${pkgname}-linux.zip"
15 md5sums=('8d11bcdc59af2a0c07f429b36c72c248'
16          '629fddc533c6c5f33532a4e289271206')
18 build(){
19   cd $srcdir
20   msg "You need a full copy of this game in order to install it"
21   msg "Searching for \"${_gamepkg}\" in dir: $(readlink -f `pwd`/..)"
22     pkgpath=$startdir
23     if [[ ! -f "$startdir/${_gamepkg}" ]]; then
24        error "Game package not found, please type absolute path to ${_gamepkg} (/home/joe):"
25        read pkgpath
26        if [[ ! -f "${pkgpath}/${_gamepkg}" ]]; then
27            error "Unable to find game package." && return 1
28        fi
29     fi
30   msg "Found game package, installing..."
32   ln -fs ${pkgpath}/${_gamepkg} . || return 1
33   unzip ${srcdir}/${_gamepkg} -d  $srcdir/${pkgname} || return 1
36 package() {
37     cd $srcdir
39     # Install Data
40     install -D -m755 "${srcdir}/${pkgname}/Rimshot.love" "${pkgdir}/usr/share/games/${pkgname}/${pkgname}.love"
41     install -D -m644 "${srcdir}/${pkgname}/Readshot.txt" "$pkgdir/usr/share/games/${pkgname}/readme"
43     # Install Launcher
44     install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
46     # Install Desktop
47     install -D -m644 "${srcdir}/${pkgname}.desktop" \
48         "${pkgdir}/usr/share/applications/${pkgname}.desktop"
51 # vim:set ts=2 sw=2 et: