aboutsummaryrefslogtreecommitdiffstats
path: root/main/eboard/APKBUILD
blob: a30231dbbd4e3c942206bd29a19b4370184cdc03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=eboard
pkgver=1.1.1
pkgrel=3
pkgdesc="Chess board interface for ICS"
url="http://www.bergo.eng.br/eboard"
arch="all"
license="GPLv2+"
depends=
makedepends="gtk+2.0-dev perl"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://prdownloads.sourceforge.net/eboard/eboard-$pkgver.tar.bz2
	eboard-libpng-1.5.patch
	eboard.desktop
	eboard-const-safety.patch"

_builddir="$srcdir"/eboard-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--man-prefix=/usr/share/man \
		--extra-libs=dl \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$srcdir"/eboard.desktop \
		"$pkgdir"/usr/share/applications/eboard.desktop
}

md5sums="03dcdaa2bc85218b1b18c4bee276fea7  eboard-1.1.1.tar.bz2
349dd8db4cca191925b9d30fb0da837b  eboard-libpng-1.5.patch
70f985b6841c2e6374555a5a4c0cca79  eboard.desktop
9d2c97f724a083de7f39a4b3e87f22fe  eboard-const-safety.patch"