summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-07-15 14:40:35 -0600
committerBrian Bidulock2015-07-15 14:40:35 -0600
commit3d5256429b63a822f2d8c16db0500b38ef2fd997 (patch)
treed93dea3214247034764743298329dca545d6af84
downloadaur-3d5256429b63a822f2d8c16db0500b38ef2fd997.tar.gz
initial version
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD52
-rw-r--r--gnome-doc-utils-fix.diff11
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16eca23bed7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = mdbtools-git
+ pkgdesc = A set of libraries and utilities for reading Microsoft Access database (MDB) files.
+ pkgver = 0.7.r195.g584119e
+ pkgrel = 1
+ url = https://github.com/brianb/mdbtools
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = txt2man
+ depends = gnome-doc-utils
+ provides = mdbtools
+ conflicts = mdbtools
+ source = git://github.com/brianb/mdbtools.git
+ source = gnome-doc-utils-fix.diff
+ md5sums = SKIP
+ md5sums = b441e5f2de56b9a339593d83c9516cf6
+
+pkgname = mdbtools-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5429a67d802
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Kamil ƚliwak <cameel2/at/gmail/com>
+
+pkgname=mdbtools-git
+_gitname=mdbtools
+pkgver=0.7.r195.g584119e
+pkgrel=1
+pkgdesc="A set of libraries and utilities for reading Microsoft Access database (MDB) files."
+arch=('i686' 'x86_64')
+url="https://github.com/brianb/mdbtools"
+depends=('gnome-doc-utils')
+makedepends=('git' 'txt2man')
+provides=('mdbtools')
+conflicts=('mdbtools')
+license=('GPL')
+source=(
+ 'git://github.com/brianb/mdbtools.git'
+ 'gnome-doc-utils-fix.diff'
+)
+md5sums=(
+ 'SKIP'
+ 'b441e5f2de56b9a339593d83c9516cf6'
+)
+
+pkgver() {
+ cd $srcdir/$_gitname
+
+ echo $(git describe --always | sed -r 's|([^-]*-g)|r\1|;s|-|.|g')
+}
+
+prepare() {
+ cd $srcdir/$_gitname
+
+ # A workaround for 'ENABLE_SK not defined' error. Does not seem to be fixed
+ # in master yet. See https://github.com/brianb/mdbtools/issues/37
+ patch $srcdir/$_gitname/configure.ac $startdir/gnome-doc-utils-fix.diff
+
+ autoreconf --install --force
+ ./configure --prefix=/usr
+}
+
+build() {
+ cd $srcdir/$_gitname
+
+ make
+}
+
+package(){
+ cd $srcdir/$_gitname
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 src/gmdb2/gmdb.desktop "$pkgdir"/usr/share/applications/gmdb.desktop
+}
diff --git a/gnome-doc-utils-fix.diff b/gnome-doc-utils-fix.diff
new file mode 100644
index 00000000000..df8a6296069
--- /dev/null
+++ b/gnome-doc-utils-fix.diff
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2014-01-07 17:03:46.000000000 +0100
++++ configure.ac 2014-01-07 17:04:05.480975158 +0100
+@@ -196,6 +196,8 @@
+ fi
+
+ AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
++AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)
++AM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)
+
+ ##################################################
+ # Check for txt2man