[arch-commits] Commit in xbill/repos (8 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Feb 4 08:11:12 EST 2012


    Date: Saturday, February 4, 2012 @ 08:11:12
  Author: andyrtr
Revision: 148616

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  xbill/repos/staging-i686/
  xbill/repos/staging-i686/03_fix_ftbfs_binutils_gold.diff
    (from rev 148615, xbill/trunk/03_fix_ftbfs_binutils_gold.diff)
  xbill/repos/staging-i686/PKGBUILD
    (from rev 148615, xbill/trunk/PKGBUILD)
  xbill/repos/staging-i686/xbill.install
    (from rev 148615, xbill/trunk/xbill.install)
  xbill/repos/staging-x86_64/
  xbill/repos/staging-x86_64/03_fix_ftbfs_binutils_gold.diff
    (from rev 148615, xbill/trunk/03_fix_ftbfs_binutils_gold.diff)
  xbill/repos/staging-x86_64/PKGBUILD
    (from rev 148615, xbill/trunk/PKGBUILD)
  xbill/repos/staging-x86_64/xbill.install
    (from rev 148615, xbill/trunk/xbill.install)

------------------------------------------------+
 staging-i686/03_fix_ftbfs_binutils_gold.diff   |   15 +++++++
 staging-i686/PKGBUILD                          |   44 +++++++++++++++++++++++
 staging-i686/xbill.install                     |   26 +++++++++++++
 staging-x86_64/03_fix_ftbfs_binutils_gold.diff |   15 +++++++
 staging-x86_64/PKGBUILD                        |   44 +++++++++++++++++++++++
 staging-x86_64/xbill.install                   |   26 +++++++++++++
 6 files changed, 170 insertions(+)

Copied: xbill/repos/staging-i686/03_fix_ftbfs_binutils_gold.diff (from rev 148615, xbill/trunk/03_fix_ftbfs_binutils_gold.diff)
===================================================================
--- staging-i686/03_fix_ftbfs_binutils_gold.diff	                        (rev 0)
+++ staging-i686/03_fix_ftbfs_binutils_gold.diff	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,15 @@
+Description: Fix FTBFS with binutils-gold
+Author: Vincent Legout <vincent at legout.info>
+Bug-Debian: http://bugs.debian.org/556690
+Last-Update: 2009-12-08
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -21,7 +21,7 @@
+ VPATH = @srcdir@
+ 
+ ALL_CFLAGS =	$(CFLAGS) $(CPPFLAGS) -I$(srcdir)
+-ALL_LDFLAGS =	$(CFLAGS) $(LDFLAGS)
++ALL_LDFLAGS =	$(CFLAGS) $(LDFLAGS) -lXpm
+ IMAGE_DEFINES=-DIMAGES=\"${datadir}/xbill\"
+ SCORE_DEFINES=-DSCOREFILE=\"${localstatedir}/xbill.scores\"
+ 

Copied: xbill/repos/staging-i686/PKGBUILD (from rev 148615, xbill/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=xbill
+pkgver=2.1
+pkgrel=8
+pkgdesc="A game that tests your reflexes as you seek and destroy all forms of Bill"
+arch=('i686' 'x86_64')
+url="http://www.xbill.org/"
+license=('GPL')
+depends=('xaw3d>=1.6')
+makedepends=('libxaw')
+install=xbill.install
+source=(http://www.xbill.org/download/${pkgname}-${pkgver}.tar.gz
+        03_fix_ftbfs_binutils_gold.diff)
+md5sums=('585e4866b15255a24203db9959407b2f'
+         'e260a6cd4f9af003d249961cb60e2d01')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  # taken from Debian
+  patch -Np1 -i ${srcdir}/03_fix_ftbfs_binutils_gold.diff
+  autoconf -v -f
+  ./configure --prefix=/usr --mandir=/usr/share/man --localstatedir=/var/games \
+    --disable-motif  --enable-athena --disable-gtk
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+
+# set appropriate permissions and destinations
+  chown root:games "${pkgdir}/usr/bin/xbill"
+  chmod 2755 "${pkgdir}/usr/bin/xbill"
+
+  chown root:games "${pkgdir}/var/games"
+  chmod 775 "${pkgdir}/var/games"
+  chown root:games "${pkgdir}/var/games/xbill"
+  chmod 775 "${pkgdir}/var/games/xbill"
+
+# Handle the scores file creation in the install script
+  rm "${pkgdir}/var/games/xbill/scores"
+}

Copied: xbill/repos/staging-i686/xbill.install (from rev 148615, xbill/trunk/xbill.install)
===================================================================
--- staging-i686/xbill.install	                        (rev 0)
+++ staging-i686/xbill.install	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,26 @@
+pre_install() {
+  if [ ! -e var/games/xbill/scores -a -e usr/var/xbill/scores ]; then
+    mkdir -p var/games/xbill
+    mv usr/var/xbill/scores var/games/xbill/scores
+  fi
+}
+
+post_install() {
+  touch var/games/xbill/scores
+  chown root:games var/games/xbill/scores
+  chmod 664 var/games/xbill/scores
+}
+
+pre_upgrade() {
+  pre_install $1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  if [ -e var/games/xbill/scores ]; then
+    mv var/games/xbill/scores var/games/xbill/scores.pacsave
+  fi
+}

Copied: xbill/repos/staging-x86_64/03_fix_ftbfs_binutils_gold.diff (from rev 148615, xbill/trunk/03_fix_ftbfs_binutils_gold.diff)
===================================================================
--- staging-x86_64/03_fix_ftbfs_binutils_gold.diff	                        (rev 0)
+++ staging-x86_64/03_fix_ftbfs_binutils_gold.diff	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,15 @@
+Description: Fix FTBFS with binutils-gold
+Author: Vincent Legout <vincent at legout.info>
+Bug-Debian: http://bugs.debian.org/556690
+Last-Update: 2009-12-08
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -21,7 +21,7 @@
+ VPATH = @srcdir@
+ 
+ ALL_CFLAGS =	$(CFLAGS) $(CPPFLAGS) -I$(srcdir)
+-ALL_LDFLAGS =	$(CFLAGS) $(LDFLAGS)
++ALL_LDFLAGS =	$(CFLAGS) $(LDFLAGS) -lXpm
+ IMAGE_DEFINES=-DIMAGES=\"${datadir}/xbill\"
+ SCORE_DEFINES=-DSCOREFILE=\"${localstatedir}/xbill.scores\"
+ 

Copied: xbill/repos/staging-x86_64/PKGBUILD (from rev 148615, xbill/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=xbill
+pkgver=2.1
+pkgrel=8
+pkgdesc="A game that tests your reflexes as you seek and destroy all forms of Bill"
+arch=('i686' 'x86_64')
+url="http://www.xbill.org/"
+license=('GPL')
+depends=('xaw3d>=1.6')
+makedepends=('libxaw')
+install=xbill.install
+source=(http://www.xbill.org/download/${pkgname}-${pkgver}.tar.gz
+        03_fix_ftbfs_binutils_gold.diff)
+md5sums=('585e4866b15255a24203db9959407b2f'
+         'e260a6cd4f9af003d249961cb60e2d01')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  # taken from Debian
+  patch -Np1 -i ${srcdir}/03_fix_ftbfs_binutils_gold.diff
+  autoconf -v -f
+  ./configure --prefix=/usr --mandir=/usr/share/man --localstatedir=/var/games \
+    --disable-motif  --enable-athena --disable-gtk
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+
+# set appropriate permissions and destinations
+  chown root:games "${pkgdir}/usr/bin/xbill"
+  chmod 2755 "${pkgdir}/usr/bin/xbill"
+
+  chown root:games "${pkgdir}/var/games"
+  chmod 775 "${pkgdir}/var/games"
+  chown root:games "${pkgdir}/var/games/xbill"
+  chmod 775 "${pkgdir}/var/games/xbill"
+
+# Handle the scores file creation in the install script
+  rm "${pkgdir}/var/games/xbill/scores"
+}

Copied: xbill/repos/staging-x86_64/xbill.install (from rev 148615, xbill/trunk/xbill.install)
===================================================================
--- staging-x86_64/xbill.install	                        (rev 0)
+++ staging-x86_64/xbill.install	2012-02-04 13:11:12 UTC (rev 148616)
@@ -0,0 +1,26 @@
+pre_install() {
+  if [ ! -e var/games/xbill/scores -a -e usr/var/xbill/scores ]; then
+    mkdir -p var/games/xbill
+    mv usr/var/xbill/scores var/games/xbill/scores
+  fi
+}
+
+post_install() {
+  touch var/games/xbill/scores
+  chown root:games var/games/xbill/scores
+  chmod 664 var/games/xbill/scores
+}
+
+pre_upgrade() {
+  pre_install $1
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  if [ -e var/games/xbill/scores ]; then
+    mv var/games/xbill/scores var/games/xbill/scores.pacsave
+  fi
+}



More information about the arch-commits mailing list