void-packages/srcpkgs/geda/template
Jürgen Buchmüller 042dc1480b
geda: update to 1.10.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-10-12 18:32:53 +02:00

53 lines
1.5 KiB
Bash

# Template file for 'geda'
pkgname=geda
version=1.10.0
revision=1
wrksrc="${pkgname}-gaf-${version}"
build_style=gnu-configure
make_build_args="V=1"
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
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
}
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
}
}