summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d974f27393b909a46ad4a03676e9f3b7ef5f97eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#

pkgname=mdbtools-unixodbc-git
_gitname=mdbtools
pkgver=0.7.1.r60.gbd88fb7
pkgrel=1
pkgdesc="A software driver based on unixodbc to access JET / MS Access database (MDB) files through ODBC."
arch=('i686' 'x86_64')
url="https://github.com/brianb/mdbtools"
depends=('unixodbc' 'flex' 'glib2' 'mdbtools-git')
makedepends=('git')
provides=('mdbtools-unixodbc')
conflicts=('mdbtools-unixodbc')
license=('LGPL')
source=("${pkgname}::git+https://github.com/brianb/${_gitname}.git")
md5sums=('SKIP')
install=mdbtools-unixodbc.install

pkgver() {
  cd "${pkgname}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd "${pkgname}"
  sed -i -e '/unittest/d' src/odbc/Makefile.am
  autoreconf -i -f
  ./configure --prefix=/usr \
              --with-unixodbc=/usr \
              --disable-scrollkeeper \
              --disable-gmdb2 \
              --disable-gtk-doc \
              --disable-man
}

build() {
  cd "${pkgname}"
  make
}

package() {
  cd "${pkgname}/src/odbc"

  make DESTDIR="${pkgdir}" install
}