blob: 6d653273c43647298a764227b442c045ceddf8bf (
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=libwps
pkgver=0.4.2
pkgrel=0
pkgdesc="Import filter and tools for Microsoft Works files"
url="http://sourceforge.net/projects/libwps/"
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/libwps/libwps/libwps-$pkgver/libwps-$pkgver.tar.bz2"
_builddir="$srcdir"/libwps-$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="8a6c55542ce80203dd6d3b1cba99d4e5 libwps-0.4.2.tar.bz2"
sha256sums="254b8aeb36a3b58eabf682b04a5a6cf9b01267e762c7dc57d4533b95f30dc587 libwps-0.4.2.tar.bz2"
sha512sums="f7f9bc985ebd5599e0a38006dff6f63b0cb0c3ac2b873bbdb19878f71031d00527fa88fc134b75722329954ac7a8849ec9d314a11099a7089f407e9321530073 libwps-0.4.2.tar.bz2"
|