updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / sanguosha / PKGBUILD
blobc68ac637ef2edd774bc0dde72674e2b1329de163
1         # Maintainer: Fisher Duan <steamedfish@njuopen.com>
2 # Maintainer: Vehicle Lee <imxifs@gmail.com>
3 pkgname=sanguosha
4 pkgver=3.4.3
5 _pkgver=20110919
6 pkgrel=1
7 pkgdesc="A Chinese board game, online version"
8 arch=('i686' 'x86_64')
9 url="http://www.sanguosha.com/"
10 license=('unknown')
11 if [ "$CARCH" == "x86_64" ]; then
12     depends=('adobe-air' 'lib32-nss')
13 else
14     depends=('adobe-air')
16 makedepends=('unzip')
17 source=(http://web.sanguosha.com/2/air/SanGuoSha.air sanguosha sanguosha.desktop)
18 md5sums=('94571cec595a93f4795bbe979c844307'
19          'caadd6f792483aaf98202bb4d51481bb'
20          '5703da141c6edac3e4311f5023db3832')
22 package()
24         cd ${srcdir}
25         install -d ${pkgdir}/{usr/{bin,share/{applications,icons/${pkgname}}},opt/${pkgname}} 
27         #unzip SanGuoSha.air -d ${srcdir}/
29         install -Dm644 assets/icon/SGS32.png ${pkgdir}/usr/share/icons/${pkgname}/
30         install -Dm644 SanGuoSha.air ${pkgdir}/opt/${pkgname}/
32         install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/
33         install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}