void-packages/srcpkgs/geda/template

50 lines
1.4 KiB
Bash

# Template file for 'geda'
pkgname=geda
version=1.8.2
revision=2
wrksrc=${pkgname}-gaf-${version}
build_style=gnu-configure
hostmakedepends="pkg-config guile desktop-file-utils"
makedepends="gc-devel gtk+-devel guile-devel"
depends="guile geda-data"
short_desc="Electronic Design Automation tool"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
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
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Because guile fails https://travis-ci.org/voidlinux/void-packages/jobs/64873229"
esac
post_install() {
# Remove unwanted files in /usr/share/mime
find ${DESTDIR}/usr/share/mime -maxdepth 1 -type f | xargs rm
}
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() {
noarch=yes
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - documentation and exmaple files"
pkg_install() {
vmove usr/share/doc
}
}
geda-data_package() {
noarch=yes
short_desc+=" - data files"
pkg_install() {
# Do not remove the local sym directory
touch ${DESTDIR}/usr/share/gEDA/sym/local/.keep-me
vmove usr/share/gEDA
}
}