aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmwaw/APKBUILD
blob: 1929de5611fa9a2d138077056c355753d1491640 (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
53
54
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libmwaw
pkgver=0.3.10
pkgrel=0
pkgdesc="Import filter and tools for old Mac documents"
url="http://sourceforge.net/projects/libmwaw/"
arch="all"
license="MPL2"
depends=""
depends_dev="boost-dev attr-dev zlib-dev"
makedepends="$depends_dev librevenge-dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/project/libmwaw/libmwaw/libmwaw-$pkgver/libmwaw-$pkgver.tar.bz2"

_builddir="$srcdir"/libmwaw-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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
}

tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="f52fc184fcdb6c857c0ef2e223d9cf7d  libmwaw-0.3.10.tar.bz2"
sha256sums="b9ad0892e593354698f25e9a484a717471ec13352d4c8a458db20d250cfab333  libmwaw-0.3.10.tar.bz2"
sha512sums="c244d781fcc18f744d1a3fb5df7cbf26d1a2b11304ee1ee0d23ccf046b4ea35294914677ebd25f29d1c519b9dc64a561851ca5f0e720c6f0f9676b3cccf1b2dd  libmwaw-0.3.10.tar.bz2"