diff --git a/community/gnubg/PKGBUILD b/community/gnubg/PKGBUILD index ca91b6948..77be571cc 100644 --- a/community/gnubg/PKGBUILD +++ b/community/gnubg/PKGBUILD @@ -7,23 +7,31 @@ pkgname=gnubg pkgver=1.05.000 -pkgrel=1 +pkgrel=2 pkgdesc="World class backgammon application" arch=('i686' 'x86_64') url="http://www.gnubg.org" license=('GPL3') -depends=('python2' 'gtkglext' 'hicolor-icon-theme' 'curl') -install=$pkgname.install +depends=('python2' 'gtkglext' 'curl') source=($url/media/sources/$pkgname-release-$pkgver-sources.tar.gz + glib-gettext.patch $pkgname.desktop) md5sums=('2c2d291deedcb72d1fcbbd8faf90d55c' + 'bad5a86bebc1c16aad4cfbdf9444f8a0' '965f5c7c25f60b27d06cc6fef7befd30') +prepare() { + cd $pkgname-$pkgver + + patch -Np0 -i "$srcdir"/glib-gettext.patch +} + build() { cd $pkgname-$pkgver ./autogen.sh + CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=0" \ ./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc \ --mandir=/usr/share/man --enable-simd=no diff --git a/community/gnubg/glib-gettext.patch b/community/gnubg/glib-gettext.patch new file mode 100644 index 000000000..7de2ff4f1 --- /dev/null +++ b/community/gnubg/glib-gettext.patch @@ -0,0 +1,16 @@ +Index: m4/glib-gettext.m4 +=================================================================== +RCS file: /cvsroot/gnubg/gnubg/m4/glib-gettext.m4,v +retrieving revision 1.4 +diff -u -r1.4 glib-gettext.m4 +--- m4/glib-gettext.m4 21 Apr 2016 21:30:20 -0000 1.4 ++++ m4/glib-gettext.m4 2 May 2016 18:27:27 -0000 +@@ -36,6 +36,8 @@ + dnl try to pull in the installed version of these macros + dnl when running aclocal in the glib directory. + dnl ++m4_ifdef([glib_DEFUN],[m4_undefine([glib_DEFUN])]) ++m4_ifdef([glib_REQUIRE],[m4_undefine([glib_REQUIRE])]) + m4_copy([AC_DEFUN],[glib_DEFUN]) + m4_copy([AC_REQUIRE],[glib_REQUIRE]) + dnl diff --git a/community/gnubg/gnubg.install b/community/gnubg/gnubg.install deleted file mode 100644 index 1a05f573e..000000000 --- a/community/gnubg/gnubg.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -}