updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / jpcsp / PKGBUILD
bloba73f0f0de8367e8876a86bec2c3cd2799b5cb88e
1 # Contributor: Bug <bug2000@gmail.com>
2 # Maintainer: Bug <bug2000@gmail.com>
3 pkgname=jpcsp
4 pkgver="0.6"
5 pkgrel=3
6 pkgdesc="Java PSP Emulator"
7 options=('!strip')
8 arch=('i686' 'x86_64')
9 url="http://jpcsp.org/"
10 license=('GPL')
11 depends=(jogl)
12 makedepends=('p7zip')
13 install=('jpcsp.install')
14 _pkgarch='x86'
15 md5sums=('cc911bfe236ee015bd2afdf9d607f91c'
16          '44a680a4797eec6394cf131010ca23c1'
17          'cd39aad03798576eb5228ed4184885c8')
18 [ "$CARCH" = "x86_64" ] && {
19   _pkgarch='amd64'
20   md5sums=('9de05a97eb43f7a639967d93b318e420'
21            '5920b514ad044430d8f71243ac2e2e63'         
22            'cd39aad03798576eb5228ed4184885c8')
24   sed -i 's/-x86/-amd64/g' jpcsp.sh
25   }
26 source=(${pkgname}${pkgver}.7z::"http://jpcsp.googlecode.com/files/jpcsp-1772-linux-$_pkgarch.7z"
27 jpcsp.sh
28 jpcsp.desktop)
30 build() {
31   cd $srcdir
32   7z x ${pkgname}${pkgver}.7z -w$PWD
33   cd "jpcsp-linux-$_pkgarch"
34   mkdir -p "$pkgdir/opt/$pkgname"
35   cp -a . "$pkgdir/opt/$pkgname"
36   chmod -R 755 $pkgdir/opt/$pkgnname
38   cd $pkgdir/../
39   install -D jpcsp.sh $pkgdir/usr/bin/jpcsp
40   install -D jpcsp.desktop $pkgdir/usr/share/applications/jpcsp.desktop
44 # vim:set ts=2 sw=2 et: