1 # Maintainer: TDY <tdy@gmx.com>
6 pkgdesc="A single-player and network client for Xiangqi (Chinese chess)"
8 url="http://hoxchess.googlecode.com/"
11 source=(http://$pkgname.googlecode.com/files/HOXChess_src_v$pkgver.zip
12 $pkgname-$pkgver-paths.diff
14 md5sums=('8dd87c922ad6ba93a9648f70d5476db2'
15 '97dfbdf577845500ee13379d9cbad623'
16 '02fc24d1f0442b8ef3122f4f19ae21fc')
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
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 '{}' \;