From cfefa5d1a2f03b1617d2c5ee949adaa11c84e18c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 4 May 2015 20:55:03 -0400 Subject: add pcr/mdbtools --- pcr/mdbtools/PKGBUILD | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pcr/mdbtools/PKGBUILD (limited to 'pcr/mdbtools/PKGBUILD') 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 +# Maintainer (AUR): Miguel Revilla +# Contributor (AUR): TDY +# Contributor (AUR): Eduard "bekks" Warkentin + +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 +} -- cgit v1.2.3-54-g00ecf