diff options
author | anthraxx | 2017-12-12 21:42:46 +0100 |
---|---|---|
committer | anthraxx | 2017-12-12 21:42:46 +0100 |
commit | 2ff1228cfacd80efd353f4b2b9250556411effe3 (patch) | |
tree | 7b29159bd04b9afd087f0e1ecf29efff086084b4 /PKGBUILD | |
parent | e406ed7aeaebb24e7c92707db1d505cd84c13b55 (diff) | |
download | aur-scanmem-git.tar.gz |
upgpkg: scanmem-git 0.17.1035.0cc3830-1
upstream release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 61 |
1 files changed, 48 insertions, 13 deletions
@@ -1,40 +1,75 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Contributor: Allen Choong <allencch at hotmail dot com> -pkgname=scanmem-git -pkgver=0.16.892.5f14e5f +pkgbase=scanmem-git +pkgname=('scanmem-git' 'libscanmem-git' 'gameconqueror-git') +pkgver=0.17.1035.0cc3830 pkgrel=1 pkgdesc='Memory scanner designed to isolate the address of an arbitrary variable in an executing process' url='https://github.com/scanmem/scanmem' -arch=('i686' 'x86_64') +arch=('x86_64') license=('GPL3') -provides=('scanmem') -conflicts=('scanmem') -depends=('gtk3' 'python-gobject' 'polkit') -makedepends=('git' 'intltool') -source=(${pkgname}::git+https://github.com/scanmem/scanmem.git) +makedepends=('git' 'intltool' 'gtk3' 'python-gobject' 'polkit' 'glibc' 'readline') +options=('!emptydirs') +source=(${pkgbase}::git+https://github.com/scanmem/scanmem.git) sha512sums=('SKIP') pkgver() { - cd ${pkgname} + cd ${pkgbase} printf "%s.%s.%s" "$(git tag|sort|tail -n1|sed -r 's|-|.|g'|sed -r 's|v?(.*)|\1|')" \ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { - cd ${pkgname} + cd ${pkgbase} ./autogen.sh } build() { - cd ${pkgname} + cd ${pkgbase} ./configure --enable-gui --prefix=/usr make } -package() { - cd ${pkgname} +check() { + cd ${pkgbase} + make check +} + +package_scanmem-git() { + depends=('libscanmem' 'glibc' 'readline') + provides=('scanmem') + conflicts=('scanmem') + + cd ${pkgbase} + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}/usr/"{include,lib} + rm -rf "${pkgdir}/usr/share/"{gameconqueror,appdata,applications,icons,locale,polkit-1} + rm "${pkgdir}"{/usr/bin/gameconqueror,/usr/share/man/man1/gameconqueror.1} +} + +package_libscanmem-git() { + depends=('readline') + pkgdesc+=" (library)" + provides=('libscanmem') + conflicts=('libscanmem') + + cd ${pkgbase} + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}/usr/bin" + rm -r "${pkgdir}/usr/share" +} + +package_gameconqueror-git() { + depends=('libscanmem' 'gtk3' 'python' 'python-gobject' 'polkit') + pkgdesc+=" (gtk GUI)" + provides=('gameconqueror') + conflicts=('gameconqueror') + + cd ${pkgbase} make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}/usr/"{include,lib,share/doc} + rm "${pkgdir}"{/usr/bin/scanmem,/usr/share/man/man1/scanmem.1} } # vim: ts=2 sw=2 et: |