1 # $Id: PKGBUILD 22076 2008-12-21 17:41:36Z jgc $
2 # Maintainer: Jeff 'codemac' Mickey <jeff@archlinux.org>
3 # Maintainer: roberto <roberto@archlinux.org>
6 _rpmver=7.5.0-0pre.0.20040523
8 pkgdesc="Xconq is a general strategy game system."
10 url="http://sources.redhat.com/xconq/"
12 makedepends=('rpmextract')
13 depends=('tk>=8.5.5' 'libxmu')
16 source=(ftp://sources.redhat.com/pub/xconq/xconq-7.5.pre/Unix/Sources/${pkgname}-${_rpmver}.src.rpm)
17 md5sums=('f675fbc766290682f74b643845546898')
21 rpmextract.sh ${pkgname}-${_rpmver}.src.rpm || return 1
22 bsdtar xf xconq-7.5.0.tar.gz || return 1
24 ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-alternate-scoresdir=/var/games --enable-alternate-x11-app-defaults-dir=/etc/X11/app-defaults --enable-alternate-gameuser=root --enable-alternate-gamegroup=root || return 1
25 make X11_LDFLAGS="" || return 1
26 install -m755 -d "${pkgdir}/var/games"
28 prefix="${pkgdir}/usr" \
29 mandir="${pkgdir}/usr/share/man" \
30 infodir="${pkgdir}/usr/share/info" \
31 scoresdir="${pkgdir}/var/games" install || return 1
32 chown -R root:games "${pkgdir}/var/games" || return 1
33 chown root:games "${pkgdir}/usr/bin/xconq" || return 1
34 chmod 775 "${pkgdir}/var/games" || return 1
35 chmod 2755 "${pkgdir}/usr/bin/xconq" || return 1
36 rmdir "${pkgdir}/usr/share/info"