blob: 42f88f667988f0d829ce79bb286a480f7978fee7 (
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
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libodfgen
pkgver=0.1.5
pkgrel=0
pkgdesc="Import filter and tools for Open Document Format"
url="http://sourceforge.net/projects/libwpd/"
arch="all"
license="MPL2"
depends=""
depends_dev="boost-dev librevenge-dev"
makedepends="$depends_dev pkgconfig doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://sourceforge.net/projects/libwpd/files/$pkgname/$pkgname-$pkgver/$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 \
--enable-fast-install \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="e0a76e8fb84a3aceb70bdb733c7431ac libodfgen-0.1.5.tar.xz"
sha256sums="fb8706e38f6acf019f8b50262af2bf850821c6d10dad8708f13e54f1a08294dd libodfgen-0.1.5.tar.xz"
sha512sums="d9f270fb7410c25ce113ecfb60d17bcf8e57220a6f772a3c2e7f794521495b9a164fe2ddf67a291d26f3052d406ee09ca35096ed3bc46bb268f318b837530ca0 libodfgen-0.1.5.tar.xz"
|