```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 ```
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'scanmem'
|
|
pkgname=scanmem
|
|
version=0.17
|
|
revision=6
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-gui"
|
|
hostmakedepends="automake gettext-devel intltool libtool m4 python"
|
|
makedepends="readline-devel"
|
|
short_desc="Memory scanner designed to isolate the address of an arbitrary var"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://github.com/scanmem/scanmem"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
|
|
CFLAGS="-D__NEED_pid_t"
|
|
|
|
nocross="checking for /proc/self/maps... configure: error"
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
libscanmem_package() {
|
|
short_desc+=" - runtime library"
|
|
license="LGPL-3.0-only"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so*"
|
|
}
|
|
}
|
|
|
|
libscanmem-devel_package() {
|
|
short_desc+=" - development files"
|
|
license="LGPL-3.0-only"
|
|
depends="lib${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
gameconqueror_package() {
|
|
short_desc="GameConqueror is a GUI front-end for scanmem, providing more features"
|
|
depends="polkit gtk+3 python3-gobject lib${sourcepkg}>=${version}_${revision}"
|
|
python_version=3
|
|
pkg_install() {
|
|
cd $DESTDIR
|
|
find * -iname "*${pkgname}*" -prune | while read f; do vmove $f; done
|
|
}
|
|
}
|