updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / hoxchess / PKGBUILD
bloba4191b2156e49f276f13231f9ca949b4c0ef02ff
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=hoxchess
4 pkgver=1.0.0
5 pkgrel=1
6 pkgdesc="A single-player and network client for Xiangqi (Chinese chess)"
7 arch=('i686' 'x86_64')
8 url="http://hoxchess.googlecode.com/"
9 license=('GPL3')
10 depends=('wxgtk-2.9')
11 source=(http://$pkgname.googlecode.com/files/HOXChess_src_v$pkgver.zip
12         $pkgname-$pkgver-paths.diff
13         $pkgname.desktop)
14 md5sums=('8dd87c922ad6ba93a9648f70d5476db2'
15          '97dfbdf577845500ee13379d9cbad623'
16          '02fc24d1f0442b8ef3122f4f19ae21fc')
18 build() {
19   cd "$srcdir/hox_Project"
20   patch -Np0 -i ../$pkgname-$pkgver-paths.diff || return 1
21   (make -C plugins/AI_XQWLight && \
22    make -C plugins/AI_HaQiKiD  && \
23    make -C plugins/AI_MaxQi    && \
24    make -C plugins/AI_Folium   && \
25    make -C plugins/AI_TSITO    && \
26    make -C hox_Client) || return 1
29 package() {
30   cd "$srcdir/hox_Project"
31   install -dm755 "$pkgdir"/usr/{lib/$pkgname,share}
32   install -cm755 plugins/AI_*.so "$pkgdir/usr/lib/$pkgname"
33   install -Dm755 hox_Client/$pkgname "$pkgdir/usr/bin/$pkgname"
34   install -Dm644 ../$pkgname.desktop \
35     "$pkgdir/usr/share/applications/$pkgname.desktop"
36   cp -r resource "$pkgdir/usr/share/$pkgname"
37   find "$pkgdir/usr/share/$pkgname" -type d -exec chmod 755 '{}' \;
38   find "$pkgdir/usr/share/$pkgname" -type f -exec chmod 644 '{}' \;