summaryrefslogtreecommitdiffstats
path: root/main/wv/APKBUILD
blob: f054237b33c5b16af84bc85407097514df552ded (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wv
pkgver=1.2.7
pkgrel=1
pkgdesc="MSWord library can load and parse Word 2000, 97, 95 and 6 file formats"
url="http://sourceforge.net/projects/wvware"
arch="x86 x86_64"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pkgconfig libgsf-dev libpng-dev bzip2-dev coreutils"
source="http://www.abisource.com/downloads/wv/$pkgver/wv-$pkgver.tar.gz
	fix-soname.patch
	"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p1 -i "$srcdir"/fix-soname.patch
}

build () {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--mandir=/usr/share/man || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="a6a3484745aa73897ff9c5a871482b4b  wv-1.2.7.tar.gz
10a6988f743346c2429e189cef4363bd  fix-soname.patch"