blob: 1cea1fd02da5c37b4dee188e49765e7bf07d23f0 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dia
pkgver=0.97.2
pkgrel=0
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"
_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
rm "$pkgdir"/usr/lib/dia/*.la || return 1
}
md5sums="1e1180a513fb567709b09bc19f12105e dia-0.97.2.tar.xz
cbbc32d417297b855353f86b484b369b isinf.patch
c5429dd3b25211811e343bc761d7af4c isfinite.patch"
|