blob: dddc1fcb494651acacd87ae487be3dc58b30a9b8 (
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=libwpd
pkgver=0.10.0
pkgrel=0
pkgdesc="Import filter and tools for WordPerfect Documents"
url="http://sourceforge.net/p/libwpd/"
arch="all"
license="MPL2"
depends=""
depends_dev="librevenge-dev"
makedepends="$depends_dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/project/libwpd/libwpd/libwpd-$pkgver/libwpd-$pkgver.tar.bz2"
_builddir="$srcdir"/libwpd-$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="0773d79a1f240ef9f4f20242b13c5bb7 libwpd-0.10.0.tar.bz2"
sha256sums="f2bf5d65156a351ce404550dd822c8db8ab8740b393f61dba828d1b2cb33fe91 libwpd-0.10.0.tar.bz2"
sha512sums="fb3c069691e2c5caaa8181147824261a232fddc21ab825f3084b64354c8593efac023e4db9515163c975b400c661997ebf59d6137b960a5a5b86efeab0e0f254 libwpd-0.10.0.tar.bz2"
|