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 ```
35 lines
972 B
Bash
35 lines
972 B
Bash
# Template file for 'gtkglext'
|
|
pkgname=gtkglext
|
|
version=1.2.0
|
|
revision=8
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config glib-devel automake libtool gtk+-devel"
|
|
makedepends="libXt-devel gtk+-devel glu-devel"
|
|
short_desc="OpenGL extension to GTK+"
|
|
maintainer="Martin Riese <grauehaare@gmx.de>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://projects.gnome.org/gtkglext"
|
|
distfiles="${SOURCEFORGE_SITE}/gtkglext/gtkglext/${version}/gtkglext-${version}.tar.gz"
|
|
checksum=e5073f3c6b816e7fa67d359d9745a5bb5de94a628ac85f624c992925a46844f9
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_patch() {
|
|
rm -f gdk/x11/gdkglfont-x11.c
|
|
}
|
|
|
|
gtkglext-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/gtkglext-1.0
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|