40 lines
998 B
Bash
40 lines
998 B
Bash
# Template file for 'mdbtools'
|
|
pkgname=mdbtools
|
|
version=0.5
|
|
revision=10
|
|
build_style=gnu-configure
|
|
configure_args="--disable-glibtest --enable-sql"
|
|
hostmakedepends="flex bison pkg-config"
|
|
makedepends="readline-devel libglib-devel"
|
|
short_desc="Library and utilities for reading Microsoft Access Databases"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://mdbtools.sourceforge.net/"
|
|
license="GPL-2, LGPL-2.1"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=7a5db39fecff5ce4fb91e019acf5795b40221aff09bbd6d84f8dec60f017b05d
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
pre_configure() {
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
*-musl) sed -i -e "s/^host_os=.*/host_os=gnu/" configure
|
|
esac
|
|
}
|
|
|
|
mdbtools-devel_package() {
|
|
depends="libmdb>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libmdb_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|