void-packages/srcpkgs/geda/template

60 lines
1.6 KiB
Bash

# Template file for 'geda'
pkgname=geda
version=1.10.0
revision=3
wrksrc="${pkgname}-gaf-${version}"
build_style=gnu-configure
configure_args="--disable-update-xdg-database"
hostmakedepends="pkg-config guile python desktop-file-utils shared-mime-info"
makedepends="gamin-devel gc-devel gtk+-devel guile-devel python-devel libatomic_ops-devel"
depends="guile geda-data"
checkdepends="perl"
short_desc="Electronic Design Automation tool"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="http://www.geda-project.org/"
distfiles="http://ftp.geda-project.org/geda-gaf/stable/v${version%.*}/${version}/geda-gaf-${version}.tar.gz"
checksum=5eb7a619f9d9cbcfa895468d6eae888d7e1d519dfff717b9f8f22fbeb37a3b1a
CFLAGS="-Wno-deprecated-declarations"
python_version=2
if [ "$CROSS_BUILD" ]; then
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
fi
fi
pre_configure() {
mkdir -p gnu
touch gnu/stubs-32.h
}
post_install() {
rm -f ${DESTDIR}/usr/share/applications/mimeinfo.cache
}
geda-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/include
}
}
geda-doc_package() {
archs=noarch
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - documentation and exmaple files"
pkg_install() {
vmove usr/share/doc
}
}
geda-data_package() {
archs=noarch
short_desc+=" - data files"
pkg_install() {
vmove usr/share/gEDA
}
}