db-move: moved webkit2gtk from [staging] to [testing] (x86_64)
[arch-packages.git] / libmwaw / trunk / PKGBUILD
blob1ce9ab985897a1f0f4a3a8631590db0b2a33cecc
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Thomas Arnhold <thomas at arnhold dot org>
4 pkgbase=libmwaw
5 pkgname=('libmwaw' 'libmwaw-docs')
6 pkgver=0.3.21
7 pkgrel=3
8 pkgdesc="Import library for some old mac text documents."
9 arch=('x86_64')
10 url="https://sourceforge.net/projects/libmwaw/"
11 license=('LGPL2.1' 'MPL')
12 makedepends=('librevenge' 'doxygen')
13 source=(https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.xz)
14 sha1sums=('198d281b63ddfe0a6d3c9678ffe62b458fbbdabf')
15 sha256sums=('e8750123a78d61b943cef78b7736c8a7f20bb0a649aa112402124fba794fc21c')
17 build() {
18   cd "${pkgname}"-${pkgver}
19   ./configure --prefix=/usr
20   make
23 check() {
24   cd "${pkgname}"-${pkgver}
25   make check
28 package_libmwaw() {
30   depends=('librevenge')
32   cd "${pkgname}"-${pkgver}
33   make DESTDIR="$pkgdir" install
35   # Split -docs
36   mkdir -p ../docs/usr/share
37   mv -t ../docs/usr/share "$pkgdir"/usr/share/doc
38   rmdir "$pkgdir"/usr/share
41 package_libmwaw-docs() {
43   pkgdesc+=" (documentation)"
45   mv -t "$pkgdir" docs/*