summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-04 20:55:03 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-04 20:55:03 -0400
commitcfefa5d1a2f03b1617d2c5ee949adaa11c84e18c (patch)
tree98f5dd67b36e3d9e0460eacf3e589e75b2c368c4 /pcr
parentca006cb3be10c53090e2cdbcb731e199e03e7149 (diff)
add pcr/mdbtools
Diffstat (limited to 'pcr')
-rw-r--r--pcr/mdbtools/9999-autoconf-summary.patch43
-rw-r--r--pcr/mdbtools/PKGBUILD60
-rw-r--r--pcr/mdbtools/gmdb2.install13
3 files changed, 116 insertions, 0 deletions
diff --git a/pcr/mdbtools/9999-autoconf-summary.patch b/pcr/mdbtools/9999-autoconf-summary.patch
new file mode 100644
index 000000000..a9b07f1a1
--- /dev/null
+++ b/pcr/mdbtools/9999-autoconf-summary.patch
@@ -0,0 +1,43 @@
+From 157f4f47617c9dd1fb8d7dae099f16664aab19bc Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Nirgal=20Vourg=C3=A8re?= <contact_mdbtools@nirgal.com>
+Date: Fri, 17 Oct 2014 17:15:46 +0200
+Subject: [PATCH] fix ENABLE_SK undefined, autoconf summary
+
+---
+ configure.ac | 32 ++++++++++++++++++++++++++++++--
+ 1 file changed, 30 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 26377e2..a907f02 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -253,3 +255,29 @@ mdbtools.spec
+ include/mdbver.h])
+ AC_OUTPUT
+ dnl doc/reference/libmdb/Makefile])
++
++##################################################
++# Print summary
++##################################################
++
++
++bold_red=$(tput bold)$(tput setf 4)
++bold_green=$(tput bold)$(tput setf 2)
++bold=$(tput bold)
++reset=$(tput sgr0)
++AC_MSG_NOTICE([])
++AC_MSG_NOTICE([${bold}MDB Tools $VERSION - Configuration summary${reset}])
++AC_MSG_NOTICE([])
++if test x$sql = xtrue; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ SQL : ${summary}${reset}])
++if test x$HAVE_ODBC = xtrue; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ ODBC : ${summary}${reset}])
++if test x$build_gmdb2 = xyes; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ UI : ${summary}${reset}])
++if test x$enable_gtk_doc = xyes; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ Gtk doc : ${summary}${reset}])
++if test x$enable_man = xyes; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ man : ${summary}${reset}])
++if test -n "$DOCBOOK_DSL"; then summary=${bold_green}enabled; else summary=${bold_red}disabled; fi
++AC_MSG_NOTICE([ html docbook : ${summary}${reset}])
++AC_MSG_NOTICE([])
diff --git a/pcr/mdbtools/PKGBUILD b/pcr/mdbtools/PKGBUILD
new file mode 100644
index 000000000..9d99a9a39
--- /dev/null
+++ b/pcr/mdbtools/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (AUR): Miguel Revilla <yo@miguelrevilla.com>
+# Contributor (AUR): TDY <tdy@gmx.com>
+# Contributor (AUR): Eduard "bekks" Warkentin <eduard.warkentin@gmail.com>
+
+pkgname=(mdbtools gmdb2)
+pkgver=0.7.1
+pkgrel=1
+pkgdesc="Utilities for viewing data and exporting schema from Microsoft Access database files"
+arch=('i686' 'x86_64')
+url="https://github.com/brianb/mdbtools"
+license=('LGPL' 'GPL')
+makedepends=('bison' 'flex' 'txt2man' 'autoconf' 'rarian' 'unixodbc' 'libgnomeui')
+options=('!libtool' '!emptydirs')
+source=($pkgname-$pkgver.tar.gz::$url/archive/${pkgver}.tar.gz
+ 0001-Fix-parallel-builds-make-jN-in-SQL-lexer-parser.patch::$url/commit/2892d519f3323cd3aa2b33690fe6f68504f0e516.patch
+ 0002-Fixes-build-error-introduced-by-previous-commit.patch::$url/commit/2f4b2d12fece5a046ccece256f73728604516326.patch
+ 0004-Added-.desktop-file-for-gmdb.patch::$url/commit/b449ed159d5acdca636066a4a6ba360f66174fc4.patch
+ 9999-autoconf-summary.patch)
+md5sums=('477c7af98e75f8e6c987b020d6a822d8'
+ 'ee06850e2dcb517d5dbf421acdb7f647'
+ 'cc45c73cf9151deeb7e6ce03d2f95eff'
+ '2f593a039d0d546e37b63b7c2c6c4b77'
+ '1c570d626e092e5870ef704d1d1e0ca1')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ for patch in ../*.patch; do
+ patch -Np1 -i "$patch"
+ done
+ sed -i 's/@LEXLIB@//' src/*/Makefile.am
+ autoreconf -i -f
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
+ --with-unixodbc=/usr
+ make
+}
+
+package_mdbtools() {
+ depends=('unixodbc' 'glib2')
+ optdepends=('gmdb2: graphical viewer for MDB files')
+
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" -C src/gmdb2 uninstall
+}
+
+package_gmdb2() {
+ pkgdesc='Graphical viewer for Microsoft Access database files'
+ license=('GPL')
+ depends=("mdbtools=$pkgver" 'libgnomeui' 'desktop-file-utils')
+ install=gmdb2.install
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src/gmdb2"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 gmdb.desktop "$pkgdir"/usr/share/applications/gmdb2.desktop
+}
diff --git a/pcr/mdbtools/gmdb2.install b/pcr/mdbtools/gmdb2.install
new file mode 100644
index 000000000..bb10b7de0
--- /dev/null
+++ b/pcr/mdbtools/gmdb2.install
@@ -0,0 +1,13 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ update-desktop-database -q
+}
+
+# vim:set ts=2 sw=2 et: