summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Husmann2015-06-09 00:54:34 +0200
committerStefan Husmann2015-06-09 00:54:34 +0200
commit3e1e0c4c45bf3488b21624539d57ece60024bf42 (patch)
treeddf626031e424383cc2c2aa28872445af85f69e5
downloadaur-3e1e0c4c45bf3488b21624539d57ece60024bf42.tar.gz
initial version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD47
-rw-r--r--wp2latex.install7
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ac6ac6debe6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = wp2latex
+ pkgdesc = Converts WordPerfect document formats to LaTeX
+ pkgver = 3.69
+ pkgrel = 1
+ url = http://www.penguin.cz/~fojtik/wp2latex/wp2latex.htm
+ install = wp2latex.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = unzip
+ depends = libjpeg
+ depends = gcc-libs
+ noextract = wp2latex-3.69.zip
+ options = !strip
+ source = http://www.penguin.cz/~fojtik/wp2latex/wp2latex-3.69.zip
+ md5sums = 64df707f38ddce5d78589ceb797c1d82
+
+pkgname = wp2latex
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bd365f0b3c5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+pkgname=wp2latex
+pkgver=3.69
+pkgrel=1
+pkgdesc="Converts WordPerfect document formats to LaTeX"
+url="http://www.penguin.cz/~fojtik/$pkgname/$pkgname.htm"
+arch=('i686' 'x86_64')
+license=('GPL')
+source=(http://www.penguin.cz/~fojtik/$pkgname/$pkgname-${pkgver}.zip)
+md5sums=('64df707f38ddce5d78589ceb797c1d82')
+depends=('libjpeg' 'gcc-libs')
+makedepends=('unzip')
+install=$pkgname.install
+noextract=("$pkgname-${pkgver}.zip")
+options=('!strip')
+
+build() {
+ # hack to avoid the dos line ends in all sourcefiles.
+ cd ${srcdir}
+ unzip -quo -aa $srcdir/$pkgname-${pkgver}.zip
+ find $srcdir/$pkgname.${pkgver} -type d -exec chmod 770 {} \;
+ # normal build
+ cd ${srcdir}/$pkgname.${pkgver}
+ autoconf
+ CPPFLAGS+="-fpermissive" CXX=g++ ./configure --prefix=/usr --without-png
+ make x2latex
+}
+
+package() {
+ cd ${srcdir}/$pkgname.${pkgver}
+ install -Dm755 ${srcdir}/$pkgname.${pkgver}/linux/$pkgname \
+ $pkgdir/usr/bin/$pkgname
+ for _i in cs de
+ do
+ install -Dm644 \
+ $srcdir/$pkgname.${pkgver}/doc/locale/${_i}/lc_messages/$pkgname.mo \
+ $pkgdir/usr/share/locale/${_i}/LC_MESSAGES/$pkgname.mo
+ done
+ install -Dm644 $srcdir/$pkgname.${pkgver}/doc/$pkgname.1 \
+ $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
+}
diff --git a/wp2latex.install b/wp2latex.install
new file mode 100644
index 00000000000..7f878a18bc8
--- /dev/null
+++ b/wp2latex.install
@@ -0,0 +1,7 @@
+post_install() {
+ texconfig-sys rehash
+}
+
+post_upgrade() {
+ texconfig-sys rehash
+}