From 1abc238316a09ee760772a819cf8e8d01c89cd32 Mon Sep 17 00:00:00 2001 From: toluschr Date: Sat, 15 Feb 2020 11:41:42 +0100 Subject: [PATCH] scanmem: split package --- common/shlibs | 1 + srcpkgs/gameconqueror | 1 + srcpkgs/libscanmem | 1 + srcpkgs/libscanmem-devel | 1 + srcpkgs/scanmem/template | 39 ++++++++++++++++++++++++++++++++++----- 5 files changed, 38 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/gameconqueror create mode 120000 srcpkgs/libscanmem create mode 120000 srcpkgs/libscanmem-devel diff --git a/common/shlibs b/common/shlibs index 884207d5b1a..36610cf8ce0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3010,6 +3010,7 @@ libflatpak.so.0 flatpak-0.9.3_2 libnanomsg.so.5 nanomsg-1.1.3_1 libindicator3.so.7 libindicator-12.10.1_1 libappindicator3.so.1 libappindicator-12.10.0_1 +libscanmem.so.1 libscanmem-0.17_5 libsctp.so.1 lksctp-tools-1.0.17_1 libwithsctp.so.1 lksctp-tools-1.0.17_1 libnss_ldap.so.2 nss-pam-ldapd-0.9.7_4 diff --git a/srcpkgs/gameconqueror b/srcpkgs/gameconqueror new file mode 120000 index 00000000000..71c85a4171a --- /dev/null +++ b/srcpkgs/gameconqueror @@ -0,0 +1 @@ +scanmem \ No newline at end of file diff --git a/srcpkgs/libscanmem b/srcpkgs/libscanmem new file mode 120000 index 00000000000..71c85a4171a --- /dev/null +++ b/srcpkgs/libscanmem @@ -0,0 +1 @@ +scanmem \ No newline at end of file diff --git a/srcpkgs/libscanmem-devel b/srcpkgs/libscanmem-devel new file mode 120000 index 00000000000..71c85a4171a --- /dev/null +++ b/srcpkgs/libscanmem-devel @@ -0,0 +1 @@ +scanmem \ No newline at end of file diff --git a/srcpkgs/scanmem/template b/srcpkgs/scanmem/template index 736019b19ce..6d711f6e41b 100644 --- a/srcpkgs/scanmem/template +++ b/srcpkgs/scanmem/template @@ -1,20 +1,49 @@ # Template file for 'scanmem' pkgname=scanmem version=0.17 -revision=4 +revision=5 build_style=gnu-configure configure_args="--disable-static --enable-gui" -hostmakedepends="libtool intltool m4 automake python" -makedepends="readline-devel gettext-devel" -depends="polkit gtk+3 python-gobject" +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 " -license="GPL-3" +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}" + archs=noarch + pkg_install() { + cd $DESTDIR + find * -iname "*${pkgname}*" -prune | while read f; do vmove $f; done + } +}