7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Template file for 'geda'
|
|
pkgname=geda
|
|
version=1.10.2
|
|
revision=1
|
|
wrksrc="${pkgname}-gaf-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-update-xdg-database"
|
|
hostmakedepends="automake libtool pkg-config flex gettext-devel guile
|
|
groff python desktop-file-utils shared-mime-info tar texinfo"
|
|
makedepends="gamin-devel gc-devel gtk+-devel guile-devel python-devel libatomic_ops-devel"
|
|
depends="guile"
|
|
checkdepends="perl"
|
|
short_desc="Electronic Design Automation tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=e862ab241528538fa3bee2739261f568011102b60c5e39a2f0358663c042c8a4
|
|
python_version=2
|
|
replaces="geda-data>=0"
|
|
|
|
CFLAGS="-Wno-deprecated-declarations -fcommon -Wno-unused-function"
|
|
|
|
pre_configure() {
|
|
mkdir -p gnu
|
|
touch gnu/stubs-32.h
|
|
autoreconf -fi
|
|
}
|
|
|
|
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() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - documentation and exmaple files"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|