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 ```
42 lines
1 KiB
Bash
42 lines
1 KiB
Bash
# Template file for 'gpm'
|
|
pkgname=gpm
|
|
version=1.20.7
|
|
revision=10
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool flex texinfo"
|
|
makedepends="ncurses-devel libfl-devel"
|
|
short_desc="Mouse server for the console and xterm"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.nico.schottelius.org/software/gpm/"
|
|
distfiles="http://www.nico.schottelius.org/software/gpm/archives/gpm-${version}.tar.lzma"
|
|
checksum=a955053b36556ffa7c628ce18fd6de7d625966573fa412fb08869533d8f7385c
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
post_install() {
|
|
cd ${DESTDIR}/usr/lib
|
|
ln -s libgpm.so.2.* libgpm.so
|
|
touch ${DESTDIR}/usr/share/info/dir
|
|
|
|
vinstall ${FILESDIR}/gpm.sh 644 etc/profile.d
|
|
vsv gpm
|
|
}
|
|
gpm-devel_package() {
|
|
depends="libgpm-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
libgpm_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|