updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / xconq / PKGBUILD
blobbef8d167d417d7fd404e12461a31393fac46e8ea
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>
4 pkgname=xconq
5 pkgver=7.5.0pre
6 _rpmver=7.5.0-0pre.0.20040523
7 pkgrel=1
8 pkgdesc="Xconq is a general strategy game system."
9 arch=(i686 x86_64)
10 url="http://sources.redhat.com/xconq/"
11 license=('GPL')
12 makedepends=('rpmextract')
13 depends=('tk>=8.5.5' 'libxmu')
14 options=(force)
15 install=xconq.install
16 source=(ftp://sources.redhat.com/pub/xconq/xconq-7.5.pre/Unix/Sources/${pkgname}-${_rpmver}.src.rpm)
17 md5sums=('f675fbc766290682f74b643845546898')
19 build() {
20   cd "${srcdir}"
21   rpmextract.sh ${pkgname}-${_rpmver}.src.rpm || return 1
22   bsdtar xf xconq-7.5.0.tar.gz || return 1
23   cd xconq-7.5.0
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"
27   make X11_LDFLAGS="" \
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"