# Template file for 'geda' pkgname=geda version=1.8.2 revision=7 wrksrc="${pkgname}-gaf-${version}" build_style=gnu-configure configure_args="--with-sysroot=/${XBPS_CROSS_BASE}" hostmakedepends="pkg-config guile desktop-file-utils shared-mime-info" makedepends="gc-devel gtk+-devel guile-devel" depends="guile geda-data" checkdepends="perl" short_desc="Electronic Design Automation tool" maintainer="Jürgen Buchmüller " 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=bbf4773aef1b5a51a8d6f4c3fa288c047340cc62dd6e14d7928fcc6e4051b721 if [ "${XBPS_ARCH}" = "x86_64" ]; then hostmakedepends+=" glibc-devel-32bit" fi 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 } }