blob: 634a9861c1e9638517e2a1279f302097e50e5cef (
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
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libodfgen
pkgver=0.1.3
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
update_config_sub
}
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
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="4e6e642609ddb62b13626aa6e7efe20f libodfgen-0.1.3.tar.xz"
sha256sums="d3a09d987e9c0955846cad1e8a885a9c7a76bfaff75d4c1b5626844c62808eba libodfgen-0.1.3.tar.xz"
sha512sums="c93abc1ce100c38876b70c1458515086f93b1c376df905fd05d428f69e3f7c709a26c38b18583f878a7f2850b069b99917aeb44426d6decb3be3081bec039c86 libodfgen-0.1.3.tar.xz"
|