geda: fix more unwanted files; add mutable_files

This commit is contained in:
jbu 2015-06-05 19:14:53 +02:00
parent 8016e11345
commit 17351f62a2
1 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,15 @@
# Template file for 'geda'
pkgname=geda
version=1.8.2
revision=2
revision=3
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"
mutable_files="/usr/share/mime/application/x-geda-symbol.xml
/usr/share/mime/application/x-geda-gsch2pcb-project.xml
/usr/share/mime/application/x-geda-schematic.xml"
short_desc="Electronic Design Automation tool"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
@ -18,8 +21,9 @@ 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
# Remove unwanted files in /usr/share/mime and /usr/share/applications
find ${DESTDIR}/usr/share/mime -maxdepth 1 -type f | xargs rm
rm ${DESTDIR}/usr/share/applications/mimeinfo.cache
}
geda-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
@ -42,8 +46,6 @@ 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
}
}