aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/xboard/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/xboard/APKBUILD')
-rw-r--r--unmaintained/xboard/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/unmaintained/xboard/APKBUILD b/unmaintained/xboard/APKBUILD
new file mode 100644
index 0000000000..45a31cdce4
--- /dev/null
+++ b/unmaintained/xboard/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xboard
+pkgver=4.7.2
+pkgrel=0
+pkgdesc="An X Window System graphical chessboard"
+url="https://www.gnu.org/software/xboard/"
+arch="all"
+license="GPLv3+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev gtk+2.0-dev texinfo librsvg-dev cairo-dev libxt-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="ftp://ftp.gnu.org/pub/gnu/xboard/xboard-$pkgver.tar.gz"
+
+_builddir="$srcdir"/xboard-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-gtk=yes \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="83ec086cbf5c4bc362a188654a9332fc xboard-4.7.2.tar.gz"
+sha256sums="9b6736994b051499dcbe564051f6d964114a38fe47bbaab6dc7bde71a52ba9ee xboard-4.7.2.tar.gz"
+sha512sums="00fada24279165e715426282e38f3f7a8dfd2aa15900ed7edd3c3e8de57ac425c1eb721df7bcf4ec4a980955cb42d69762ddd5e07af899e556820fff20607ad0 xboard-4.7.2.tar.gz"