# Maintainer: Stefan Husmann pkgname=wp2latex pkgver=3.113 pkgrel=1 pkgdesc="Converts WordPerfect document formats to LaTeX" url="http://www.penguin.cz/~fojtik/wp2latex/wp2latex.htm" arch=('i686' 'x86_64') license=('GPL') source=("http://www.penguin.cz/~fojtik/$pkgname/$pkgname-$pkgver.zip") sha256sums=('220d8253c4347cf744435877acba5d2112194ef5834f31de84171b28454a2f24') depends=('libjpeg' 'gcc-libs' 'libpng') options=('!strip') build() { cd $pkgname-$pkgver CPPFLAGS+="-fpermissive -std=c++11" ./configure --prefix=/usr make x2latex } package() { cd $pkgname-$pkgver install -Dm755 "${srcdir}"/$pkgname-$pkgver/bin/linux/$pkgname \ "$pkgdir"/usr/bin/$pkgname install -Dm644 "$srcdir"/$pkgname-$pkgver/doc/$pkgname.man \ "$pkgdir"/usr/share/man/man1/$pkgname.1 install -d "$pkgdir"/usr/share/$pkgname/doc cp -R "$srcdir"/$pkgname-$pkgver/doc/program.man/* \ "$pkgdir"/usr/share/$pkgname/doc install -d "$pkgdir"/usr/share/texmf/tex/latex/$pkgname cp "$srcdir"/$pkgname-$pkgver/styles.tex/* \ "$pkgdir"/usr/share/texmf/tex/latex/$pkgname }