diff options
author | maz-1 | 2015-10-25 15:34:48 +0800 |
---|---|---|
committer | maz-1 | 2015-10-25 15:34:48 +0800 |
commit | c5414383e12bf2206e39d19ca9c9bdea2f4c6f89 (patch) | |
tree | fbb5ff6587ede1ff671765201c1876cf8e6d8081 | |
download | aur-c5414383e12bf2206e39d19ca9c9bdea2f4c6f89.tar.gz |
init
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 45 | ||||
-rw-r--r-- | zlibwapi.patch | 12 |
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ef256a62257d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = odf-converter + pkgdesc = Binary(doc,xls,ppt) to OpenXML Translator + pkgver = 4.0.5309 + pkgrel = 1 + url = https://sourceforge.net/p/odf-converter + arch = i686 + arch = x86_64 + license = BSD + makedepends = svn + makedepends = dos2unix + depends = mono + noextract = CommandLineTool_4.0.5309.zip + options = !strip + options = emptydirs + options = libtool + source = http://downloads.sourceforge.net/project/odf-converter/ODF%20Translator%20CommandLine/Release%204.0/CommandLineTool_4.0.5309.zip + source = zlib123::svn+svn://svn.code.sf.net/p/odf-converter/code/trunk/ + source = zlibwapi.patch + md5sums = 84dbd341396dacdd8dbd70d745728e3c + md5sums = SKIP + md5sums = 80f91da40ed073f8ce50522189a09a33 + +pkgname = odf-converter + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58738193b7c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: maz-1 <ohmygod19993 at gmail dot com> +_pkgname=odf-converter +pkgname=${_pkgname} +pkgver=4.0.5309 +pkgrel=1 +pkgdesc="Binary(doc,xls,ppt) to OpenXML Translator" +arch=("i686" "x86_64") +url="https://sourceforge.net/p/odf-converter" +license=("BSD") +depends=('mono') +makedepends=('svn' 'dos2unix') +options=('!strip' 'emptydirs' 'libtool') +source=("http://downloads.sourceforge.net/project/odf-converter/ODF%20Translator%20CommandLine/Release%204.0/CommandLineTool_4.0.5309.zip" + "zlib123::svn+svn://svn.code.sf.net/p/odf-converter/code/trunk/" + zlibwapi.patch) +noextract=(CommandLineTool_4.0.5309.zip) +md5sums=('84dbd341396dacdd8dbd70d745728e3c' + 'SKIP' + '80f91da40ed073f8ce50522189a09a33') + +prepare() { + cd "$srcdir/zlib123/source/AdditionalTools/zlib123" + patch -p1 < "${srcdir}/zlibwapi.patch" +} + +build() { + cd "$srcdir/zlib123/source/AdditionalTools/zlib123" + dos2unix configure + chmod 755 ./configure + ./configure --shared + #make test + cd contrib/minizip + make +} + +package() { + mkdir -p "$pkgdir/usr/"{share/odf-converter,bin} + cd "$pkgdir/usr/share/odf-converter" + unzip "$srcdir/CommandLineTool_4.0.5309.zip" + rm libzlibwapi.so zlibwapi.dll + cp "$srcdir/zlib123/source/AdditionalTools/zlib123/contrib/minizip/libzlibwapi.so" ./ + echo '#!/bin/sh' > "$pkgdir/usr/bin/odfconverter" + echo 'exec mono /usr/share/odf-converter/OdfConverter.exe "$@"' >> "$pkgdir/usr/bin/odfconverter" + chmod +x "$pkgdir/usr/bin/odfconverter" +} diff --git a/zlibwapi.patch b/zlibwapi.patch new file mode 100644 index 000000000000..ac93e514fc80 --- /dev/null +++ b/zlibwapi.patch @@ -0,0 +1,12 @@ +diff -Naur a/contrib/minizip/Makefile b/contrib/minizip/Makefile +--- a/contrib/minizip/Makefile 2015-10-25 15:10:47.000000000 +0800 ++++ b/contrib/minizip/Makefile 2015-10-25 15:14:49.228244982 +0800 +@@ -34,7 +34,7 @@ + $(CC) -dynamiclib -single_module -install_name '@executable_path/$@' -lz -fPIC $(DEBUG) $(CFLAGS) \ + -o libzlibwapi.$(DLLEXT) $(SOURCE) + else +- $(CC) -lz -shared -fPIC $(DEBUG) $(CFLAGS) \ ++ $(CC) -Wl,--no-as-needed -lz -shared -fPIC $(DEBUG) $(CFLAGS) \ + -o libzlibwapi.$(DLLEXT) $(SOURCE) + endif + |