upgpkg: sbcl 2.3.1-1
[arch-packages.git] / libmwaw / repos / extra-x86_64 / PKGBUILD
blob0f8f54f3c4b92d44d17e1116a82e4e338f2aa3cc
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'
13              'boost' 'doxygen')
14 options=('debug')
15 source=(https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.xz)
16 sha1sums=('198d281b63ddfe0a6d3c9678ffe62b458fbbdabf')
17 sha256sums=('e8750123a78d61b943cef78b7736c8a7f20bb0a649aa112402124fba794fc21c')
19 build() {
20   cd "${pkgname}"-${pkgver}
21   ./configure --prefix=/usr
22   make
25 check() {
26   cd "${pkgname}"-${pkgver}
27   make check
30 package_libmwaw() {
32   depends=('librevenge')
34   cd "${pkgname}"-${pkgver}
35   make DESTDIR="$pkgdir" install
37   # Split -docs
38   mkdir -p ../docs/usr/share
39   mv -t ../docs/usr/share "$pkgdir"/usr/share/doc
40   rmdir "$pkgdir"/usr/share
43 package_libmwaw-docs() {
45   pkgdesc+=" (documentation)"
47   mv -t "$pkgdir" docs/*