aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwpg/APKBUILD
blob: 817abf6644f03e3dc86b5d9bd65973bcc8f49d7c (plain) (blame)
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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libwpg
pkgver=0.3.2
pkgrel=1
pkgdesc="Import filter and tools for WordPerfect Graphics"
url="https://sourceforge.net/projects/libwpg/"
arch="all"
options="!check"  # No test suite.
license="MPL-2.0"
depends=""
makedepends="doxygen librevenge-dev libwpd-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-$pkgver/libwpg-$pkgver.tar.bz2"

prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

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

sha512sums="af9bf007c1cd380cc6da543024e6f068c0eb49514ff0027b1e82170927c8496e69d6c7a2a502380f25c54fea1fc33865c70c7d24d4b38e4fbf1d064bf1f1e192  libwpg-0.3.2.tar.bz2"