aboutsummaryrefslogtreecommitdiffstats
path: root/community/libetonyek/APKBUILD
blob: d9ef8932e44054184f00f22360c22fbe88b63af9 (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
55
56
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libetonyek
pkgver=0.1.4
pkgrel=0
pkgdesc="Import filter and tools for Apple Keynote presentations"
url="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
arch="all"
license="MPL2"
depends=""
depends_dev="glm-dev boost-dev librevenge-dev libxml2-dev zlib-dev"
makedepends="$depends_dev gperf doxygen mdds1.0-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$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 \
		--disable-werror \
		--disable-static \
		|| 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="d9f913f3d29fc4fc1c8fd7084ce48fff  libetonyek-0.1.4.tar.xz"
sha256sums="d310f99c8c91ce1b6ebd50141c547471c614a307d6d1d00311b03635535bbd72  libetonyek-0.1.4.tar.xz"
sha512sums="adc8fe564133f087f3d349977b2b1665a7e74edaae637ce60b78a6718b101b79bd5ca553fe120dac4f6448a194c3971750ea09076d33dcdefae4af067238292a  libetonyek-0.1.4.tar.xz"