summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjdarch2015-08-03 21:10:26 +0200
committerjdarch2015-08-03 21:10:26 +0200
commit4be2d8d4bf5f9954b0de5d61de3e02e3221bfa0a (patch)
tree8a9189649971f5852c10cd7841175e11316404ca /PKGBUILD
downloadaur-4be2d8d4bf5f9954b0de5d61de3e02e3221bfa0a.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3875a8b79af
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
+# Contributor: Kevin Klement = klement at philos dot umass dot edu
+
+pkgname=rtf2latex2e
+pkgver=2.2.2
+dashedver=${pkgver//./-}
+pkgrel=1
+pkgdesc="Tool to convert rich text format (RTF) documents to LaTeX 2e format."
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/rtf2latex2e/"
+license=('GPL')
+optdepends=('texlive-core: To make use of LaTeX output files' 'unoconv: to convert EMF, WMF and PICT images to PDF')
+
+source=(http://downloads.sourceforge.net/$pkgname/files/$pkgname-$dashedver.tar.gz)
+md5sums=('8aa606410aeb92583e8e06c39e34f5e8')
+sha512sums=('be021399d84f0f8d82f0387e1b1fd12f100afe83f9a374f0dc19ad9f4066720f25cd6a856a1f64f7468d9d11c52cbec1941c223fa92e5dabba3c22d7f4370455')
+
+prepare() {
+ cd "${srcdir}/$pkgname-$dashedver"
+ sed -i 's/prefix?=\/usr\/local/prefix?=\/usr/g' Makefile
+}
+
+build() {
+ cd "${srcdir}/$pkgname-$dashedver"
+ make
+}
+
+check() {
+ cd "${srcdir}/$pkgname-$dashedver"
+ make test
+}
+
+package() {
+ cd "${srcdir}/$pkgname-$dashedver"
+ make DESTDIR="${pkgdir}" install
+}