void-packages/srcpkgs/scanmem/template

50 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
}
}