aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dia/APKBUILD
blob: dc70f67c403078d7f637854a505d84288b15af8b (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
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dia
pkgver=0.97.2
pkgrel=2
pkgdesc="a GTK+ based diagram creation program"
url="http://live.gnome.org/Dia"
arch="all"
license="GPL2"
depends=
depends_dev=
makedepends="gtk+-dev libxml2-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/dia/${pkgver%.*}/dia-$pkgver.tar.xz
	isinf.patch
	isfinite.patch
	dia-noglib.patch
	dia-unregister-import.patch
	"

_builddir="$srcdir"/dia-$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 \
		--sysconfdir=/etc \
		--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="1e1180a513fb567709b09bc19f12105e  dia-0.97.2.tar.xz
cbbc32d417297b855353f86b484b369b  isinf.patch
eda8e89483e97473d983b048f834861a  isfinite.patch
74ac2916d6e30cad4b2843a86ee2faad  dia-noglib.patch
888dd98e05d657e27842acdb0d91d73b  dia-unregister-import.patch"