summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-07-08 23:33:03 -0600
committerBrian Bidulock2015-07-08 23:33:03 -0600
commit36619e25aa911c65139d81ba036af975a1426b0e (patch)
treebc825c4edfe2c4309394031c2a3036543215774e
downloadaur-36619e25aa911c65139d81ba036af975a1426b0e.tar.gz
initial version
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD41
-rw-r--r--eboard.desktop8
-rw-r--r--eboard.pngbin0 -> 1083 bytes
-rw-r--r--gcc-4.4.patch11
-rw-r--r--libpng-1.5.8.patch16
6 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b05bed118b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = eboard
+ pkgdesc = A chess interface to ICS and chess engines
+ pkgver = 1.1.1
+ pkgrel = 5
+ url = http://www.bergo.eng.br/eboard/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = perl
+ depends = gtk2
+ depends = libpng
+ source = eboard-1.1.1.tar.bz2::http://sourceforge.net/projects/eboard/files/eboard/1.1.1/eboard-1.1.1.tar.bz2/download
+ source = eboard.desktop
+ source = eboard.png
+ source = gcc-4.4.patch
+ source = libpng-1.5.8.patch
+ md5sums = 03dcdaa2bc85218b1b18c4bee276fea7
+ md5sums = 9c933f467c8482624fa9f9e56901b456
+ md5sums = 2cf1bd8f4623be7540c0f2386baf355e
+ md5sums = 0a4e70bcda6aaf06f4290cfbea730114
+ md5sums = 8999e1c3ae7e14740c361294049c607d
+
+pkgname = eboard
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68aaa02772a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: kfgz <kfgz at interia dot pl>
+# Contributor: Andrea Scarpino <andrea at archlinux dot org>
+# Contributor: Jason Chu <jason at archlinux dot org>
+# Contributor: Thomas Zervogiannis <tzervo at gmail dot com>
+# Contributor: Pedro Martinez-Julia <pedromj at um dot es>
+
+pkgname=eboard
+pkgver=1.1.1
+pkgrel=5
+pkgdesc="A chess interface to ICS and chess engines"
+url="http://www.bergo.eng.br/eboard/"
+arch=('i686' 'x86_64')
+depends=('gtk2' 'libpng')
+makedepends=('perl')
+license=('GPL')
+source=(${pkgname}-${pkgver}.tar.bz2::http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2/download
+ 'eboard.desktop'
+ 'eboard.png'
+ 'gcc-4.4.patch'
+ 'libpng-1.5.8.patch')
+md5sums=('03dcdaa2bc85218b1b18c4bee276fea7'
+ '9c933f467c8482624fa9f9e56901b456'
+ '2cf1bd8f4623be7540c0f2386baf355e'
+ '0a4e70bcda6aaf06f4290cfbea730114'
+ '8999e1c3ae7e14740c361294049c607d')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ patch -Np0 -i "${srcdir}"/gcc-4.4.patch
+ patch -Np0 -i "${srcdir}"/libpng-1.5.8.patch
+ ./configure --prefix=/usr --man-prefix=/usr/share/man --extra-libs=dl
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -d "${pkgdir}"/usr/share/{pixmaps,applications}
+ install -m644 "${srcdir}"/eboard.desktop "${pkgdir}"/usr/share/applications
+ install -m644 "${srcdir}"/eboard.png "${pkgdir}"/usr/share/pixmaps
+}
diff --git a/eboard.desktop b/eboard.desktop
new file mode 100644
index 00000000000..ef0e14a65bb
--- /dev/null
+++ b/eboard.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=eBoard
+GenericName=Chess Game
+Icon=eboard.png
+Exec=eboard
+Categories=Game;BoardGame;
diff --git a/eboard.png b/eboard.png
new file mode 100644
index 00000000000..5a8c7b52f92
--- /dev/null
+++ b/eboard.png
Binary files differ
diff --git a/gcc-4.4.patch b/gcc-4.4.patch
new file mode 100644
index 00000000000..43a26393d4f
--- /dev/null
+++ b/gcc-4.4.patch
@@ -0,0 +1,11 @@
+--- ntext.cc
++++ ntext.cc
+@@ -244,7 +244,7 @@
+ return;
+ }
+
+- p = strchr(text, '\n');
++ p = strchr((char *)text, '\n');
+ if (p!=NULL) {
+ *p = 0;
+ i = strlen(text);
diff --git a/libpng-1.5.8.patch b/libpng-1.5.8.patch
new file mode 100644
index 00000000000..8ab283259f7
--- /dev/null
+++ b/libpng-1.5.8.patch
@@ -0,0 +1,16 @@
+--- cimg.cc
++++ cimg.cc
+@@ -94,11 +95,11 @@
+ ct == PNG_COLOR_TYPE_GRAY_ALPHA)
+ png_set_gray_to_rgb(pngp);
+
+- alloc(pngp->width,pngp->height);
++ alloc(width,height);
+ if (!ok) { fclose(f); return; }
+ ok = 0;
+
+- for(i=0;i<pngp->height;i++) {
++ for(i=0;i<height;i++) {
+ png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
+ }
+