diff options
author | James An | 2017-05-21 23:32:20 -0400 |
---|---|---|
committer | James An | 2017-05-21 23:32:20 -0400 |
commit | 565f3e9f004be0dc8e972d45c8ba0d91f8bfb4aa (patch) | |
tree | f5a886c4bb98ceefc298990228fb798f559c2d94 | |
download | aur-565f3e9f004be0dc8e972d45c8ba0d91f8bfb4aa.tar.gz |
Initial commit with working PKGBUILD.
-rw-r--r-- | .SRCINFO | 44 | ||||
-rw-r--r-- | .gitignore | 27 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | bool-to-null-ptr.patch | 13 |
4 files changed, 140 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f3f2634ad5ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,44 @@ +pkgbase = pinot-search-git + pkgdesc = Personal search and metasearch for the Free Desktop + pkgver = 1.09.r2.g1fcd6eb + pkgrel = 1 + url = https://code.google.com/p/pinot-search + arch = i686 + arch = x86_64 + license = GPL + makedepends = boost + makedepends = git + depends = boost-libs + depends = chmlib + depends = dbus-glib + depends = desktop-file-utils + depends = exiv2 + depends = gmime + depends = gsoap + depends = gtkmm + depends = libexttextcat + depends = libxml++2.6 + depends = openssh-askpass + depends = openssl-1.0 + depends = shared-mime-info + depends = sqlite + depends = taglib + depends = xapian-core + optdepends = antiword: index MS Word documents + optdepends = catdvi: index DVI TeX documents + optdepends = catppt: index PowerPoint presentations + optdepends = djvutxt: index DjVu documents + optdepends = pdftotext: index PDF documents + optdepends = rst2html: index reStructuredText documentation + optdepends = unrtf: index RTF documents + optdepends = unzip: index OpenDocument/StarOffice files + optdepends = xls2csv: index MS Excel spreadsheets + provides = pinot-search=1.09.r2.g1fcd6eb + conflicts = pinot-search + source = pinot-search::git+https://github.com/kendling/pinot-search.git + source = bool-to-null-ptr.patch + md5sums = SKIP + md5sums = 29b84f8e0704d78a641cad8db733df45 + +pkgname = pinot-search-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..43316bc3c124 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# From: https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore + +*.tar +*.tar.* +*.zip +*.tgz +*.log +*.log.* +*.sig + +# makepkg working folders +pkg +src + +# +# Additional ignore patterns: +# + +# Source files +*.deb +*.gem +*.out +*.rpm +*.html + +# Ignore package source folders +*/* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ad5944b35fdc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: James An <james@jamesan.ca> + +pkgname=pinot-search-git +_pkgname=${pkgname%-git} +pkgver=1.09.r2.g1fcd6eb +pkgrel=1 +pkgdesc="Personal search and metasearch for the Free Desktop" +arch=('i686' 'x86_64') +url="https://code.google.com/p/$_pkgname" +license=('GPL') +depends=('boost-libs' 'chmlib' 'dbus-glib' 'desktop-file-utils' 'exiv2' 'gmime' 'gsoap' 'gtkmm' 'libexttextcat' 'libxml++2.6' 'openssh-askpass' 'openssl-1.0' 'shared-mime-info' 'sqlite' 'taglib' 'xapian-core') +makedepends=('boost' 'git') +optdepends=( 'antiword: index MS Word documents' + 'catdvi: index DVI TeX documents' + 'catppt: index PowerPoint presentations' + 'djvutxt: index DjVu documents' + 'pdftotext: index PDF documents' + 'rst2html: index reStructuredText documentation' + 'unrtf: index RTF documents' + 'unzip: index OpenDocument/StarOffice files' + 'xls2csv: index MS Excel spreadsheets') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +options=() +install= +source=("$_pkgname"::"git+https://github.com/kendling/$_pkgname.git" + 'bool-to-null-ptr.patch') +md5sums=('SKIP' + '29b84f8e0704d78a641cad8db733df45') + +prepare() { + cd "$_pkgname" + + patch -p1 -i ../bool-to-null-ptr.patch +} + +build() { + cd "$_pkgname" + + export SSL_CFLAGS="$(PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig pkg-config --cflags "openssl >= 0.9.7")" + export SSL_LIBS="$(PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig pkg-config --libs "openssl >= 0.9.7")" + export LIBS='-lboost_system' + ./autogen.sh --prefix=/usr --enable-chmlib --enable-gio --enable-gtkmm3 --enable-libarchive --enable-mempool=no +} + +check() { + cd "$_pkgname" + + make -k check +} + +package() { + cd "$_pkgname" + + make DESTDIR="$pkgdir/" install +} diff --git a/bool-to-null-ptr.patch b/bool-to-null-ptr.patch new file mode 100644 index 000000000000..8ac00022d06e --- /dev/null +++ b/bool-to-null-ptr.patch @@ -0,0 +1,13 @@ +diff --git a/IndexSearch/ModuleFactory.cpp b/IndexSearch/ModuleFactory.cpp +index 01cad8b7..fb5f08d2 100644 +--- a/IndexSearch/ModuleFactory.cpp ++++ b/IndexSearch/ModuleFactory.cpp +@@ -132,7 +132,7 @@ IndexInterface *ModuleFactory::getLibraryIndex(const string &type, const string + (typeIter->second.m_canIndex == false)) + { + // We don't know about this type, or doesn't support indexes +- return false; ++ return NULL; + } + + void *pHandle = typeIter->second.m_pHandle; |