diff options
author | Kirill Isakov | 2023-07-24 18:29:42 +0600 |
---|---|---|
committer | Kirill Isakov | 2023-07-24 18:29:42 +0600 |
commit | 78033ca5ba2f1e1d08b8f0819a6b16c95afa8a3c (patch) | |
tree | 959774ae5e7c21dbcf29af899921c4058a27c4e8 | |
download | aur-78033ca5ba2f1e1d08b8f0819a6b16c95afa8a3c.tar.gz |
Initial upload: psitop 1.0.0-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d9a5d7399d45 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = psitop + pkgdesc = top for /proc/pressure + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/jamespwilliams/psitop + arch = i686 + arch = x86_64 + arch = aarch64 + arch = riscv64 + license = MIT + makedepends = go + source = psitop-1.0.0.tar.gz::https://github.com/jamespwilliams/psitop/archive/refs/tags/1.0.0.tar.gz + sha256sums = d909db926bb3711027efde9c4eeb6ab2ba244a041603bb8fc940cc5a9965f025 + +pkgname = psitop diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..cac4d4bafa49 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.tar.* + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..abfea00dfb93 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: tarball <bootctl@gmail.com> + +pkgname=psitop +pkgver=1.0.0 +pkgrel=1 +pkgdesc='top for /proc/pressure' +url='https://github.com/jamespwilliams/psitop' +arch=(i686 x86_64 aarch64 riscv64) +license=(MIT) +makedepends=(go) +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") +sha256sums=('d909db926bb3711027efde9c4eeb6ab2ba244a041603bb8fc940cc5a9965f025') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + mkdir -p build + go mod download +} + +build() { + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CFLAGS="$CFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export CGO_LDFLAGS="$LDFLAGS" + export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw' + + cd "$srcdir/$pkgname-$pkgver" + go build -o $pkgname +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # binary + install -Dm755 $pkgname \ + "$pkgdir/usr/bin/$pkgname" + + # license + install -Dm644 LICENSE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |