63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
# Template file for 'libgda'
|
|
pkgname=libgda
|
|
version=5.2.9
|
|
revision=7
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--with-ui --with-gtksourceview --with-graphviz --enable-json
|
|
--enable-system-sqlite --without-libsoup"
|
|
hostmakedepends="automake pkg-config intltool itstool flex perl glib-devel"
|
|
makedepends="gtk+3-devel libxml2-devel libxslt-devel
|
|
openssl-devel libgcrypt-devel sqlite-devel db-devel
|
|
libsecret-devel gtksourceview-devel graphviz-devel
|
|
json-glib-devel readline-devel libmariadbclient-devel"
|
|
depends="sqlite"
|
|
checkdepends="xvfb-run"
|
|
conf_files="/etc/libgda-5.0/config"
|
|
short_desc="Database and data abstraction layer"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.gnome-db.org/"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=59caed8ca72b1ac6437c9844f0677f8a296d52cfd1c0049116026abfb1d87d9b
|
|
make_check_pre=xvfb-run
|
|
python_version=3
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --disable-binreloc"
|
|
fi
|
|
|
|
post_extract() {
|
|
for f in $(find ${wrksrc} -type f -exec file "{}" \; | grep "C source" | cut -d ':' -f1); do
|
|
echo "${f}"
|
|
iconv -f ISO-8859-1 -t UTF-8 "${f}" >"${f}+"
|
|
mv "${f}+" "${f}"
|
|
done
|
|
#Fix LibreSSL build error
|
|
vsed -e 's,defined(LIBRESSL,!defined(OPENSSL,' -i providers/sqlcipher/sqlite3.c
|
|
}
|
|
|
|
do_check() {
|
|
# Tests cannot run parallel
|
|
${make_check_pre} make check
|
|
}
|
|
|
|
libgda-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libxslt-devel libgda>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
}
|
|
libgda-tools_package() {
|
|
short_desc+=" - Command-line tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/applications
|
|
}
|
|
}
|