diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | docfetcher | 3 | ||||
-rw-r--r-- | swt.patch | 19 |
4 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..92c40897c725 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = docfetcher + pkgdesc = A java open source desktop search application + pkgver = 1.1.14 + pkgrel = 1 + url = http://docfetcher.sourceforge.net/ + arch = i686 + arch = x86_64 + license = EPL + makedepends = unzip + depends = java-runtime>=1.6 + source = https://downloads.sourceforge.net/project/docfetcher/docfetcher/1.1.14/docfetcher-1.1.14-portable.zip + source = docfetcher + source = swt.patch + md5sums = 9336e517d3cc12f47b6a1932eb2c99c3 + md5sums = 6a798b893868bf6b5e78093143654b39 + md5sums = 4ee9dd7e1af40f45708423e297c42bd3 + +pkgname = docfetcher + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ab38a7f1fd6e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Thiago Perrotta <echo dGhpYWdvcGVycm90dGE5NUBnbWFpbC5jb20K | base64 -d > + +pkgname=docfetcher +_name=DocFetcher +pkgver=1.1.14 +pkgrel=1 +pkgdesc="A java open source desktop search application" +arch=('i686' 'x86_64') +url="http://${pkgname}.sourceforge.net/" +license=('EPL') +depends=('java-runtime>=1.6') +makedepends=('unzip') +source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/docfetcher-${pkgver}-portable.zip" + 'docfetcher' + 'swt.patch') +md5sums=('9336e517d3cc12f47b6a1932eb2c99c3' + '6a798b893868bf6b5e78093143654b39' + '4ee9dd7e1af40f45708423e297c42bd3') + +prepare() { + cd "${srcdir}" + unzip -qqo "${pkgname}-${pkgver}-portable.zip" + + # Patch to add where SWT libraries will be unpacked. See the following link: + # http://docfetcher.sourceforge.net/wiki/doku.php?id=faq + cd "${srcdir}/${_name}-${pkgver}/" + patch -Np0 -i ../swt.patch +} + +package() { + cd "${srcdir}/${_name}-${pkgver}/" + + # Executable + install -Dm755 "../${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + + # Remove files from other platforms and other unnecessary ones + rm -r "${_name}.app" + find . -name '*.exe' -exec rm -r '{}' \; + rm "Readme.txt" + + # Copy files to destination + prefix="${pkgdir}/usr/share/${pkgname}" + install -d "${prefix}" + for file in * + do + cp -a "${file}" "${prefix}/${file}" + done + find "${prefix}" -type d -exec chmod 0755 {} \; + find "${prefix}" -type f -exec chmod 0644 {} \; + chmod +x "${prefix}/${_name}.sh" +} diff --git a/docfetcher b/docfetcher new file mode 100644 index 000000000000..d7791b3927ac --- /dev/null +++ b/docfetcher @@ -0,0 +1,3 @@ +#!/bin/sh +cd "/usr/share/docfetcher/" +exec ./DocFetcher.sh "$@" diff --git a/swt.patch b/swt.patch new file mode 100644 index 000000000000..fda06da3f711 --- /dev/null +++ b/swt.patch @@ -0,0 +1,19 @@ +diff -uN -aur misc/paths.txt misc.new/paths.txt +--- misc/paths.txt 2014-03-03 10:47:56.000000000 -0300 ++++ misc.new/paths.txt 2014-05-01 17:50:31.947297346 -0300 +@@ -24,10 +24,13 @@ + + # Where the settings are stored: + #settings=C:\\path\\to\\settings\\folder ++settings=${user.home}/.docfetcher + + # Where the indexes are stored. Note: The DocFetcher daemon currently ignores + # this setting. + #indexes=C:\\path\\to\\indexes\\folder ++indexes=${user.home}/.docfetcher + + # Where the SWT library files will be written to: +-#swt=C:\\path\\to\\swt-libs +\ No newline at end of file ++#swt=C:\\path\\to\\swt-libs ++swt=${user.home}/.docfetcher |