From a7e64dea291334a74a8aaa17687ec87f0a1b3c47 Mon Sep 17 00:00:00 2001 From: Lilac Date: Mon, 15 May 2023 06:38:34 +0000 Subject: [PATCH] smem: auto updated to 1.5-5 --- repo/smem/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 repo/smem/PKGBUILD diff --git a/repo/smem/PKGBUILD b/repo/smem/PKGBUILD new file mode 100644 index 0000000..a811455 --- /dev/null +++ b/repo/smem/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: BBaoVanC +# Contributor: Federico Cinelli +# Contributor: Dave Reisner +# Contributor: Isaac Dupree +# Contributor: Sebastien Duquette + +pkgname=smem +pkgver=1.5 +pkgrel=5 +pkgdesc="Generate reports on memory usage." +url="https://www.selenic.com/smem/" +license=("GPL") +depends=('python') +optdepends=('python-matplotlib: for chart generation') +arch=('x86_64') +source=("$pkgname-$pkgver.tgz::https://www.selenic.com/repo/smem/archive/$pkgver.tar.gz") +sha256sums=('5c3907b0ac9d3252cbbc5cb9ebe93f0c2b602df67376d9050c09146871822293') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make smemcap + # smem itself doesn't need to be compiled because it's python +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 smem "$pkgdir/usr/bin/smem" + install -Dm755 smemcap "$pkgdir/usr/bin/smemcap" + install -Dm644 smem.8 "$pkgdir/usr/share/man/man8/smem.8" +} +