jobextra/strace/PKGBUILD

43 lines
1.2 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=strace
pkgver=6.0
pkgrel=01
pkgdesc='A diagnostic, debugging and instructional userspace tracer'
arch=(x86_64)
url='https://strace.io/'
depends=(perl libunwind)
source=(https://github.com/strace/strace/releases/download/v$pkgver/strace-$pkgver.tar.xz{,.asc})
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --with-libunwind --enable-mpers=no
make
}
check() {
# tests do not work in chroot environment. TODO: fixit.
# make -C $pkgname-$pkgver check
true
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- license gpg-key sha256sums ----
license=(BSD)
validpgpkeys=('296D6F29A020808E8717A8842DB5BD89A340AEB7') # Dmitry V. Levin <ldv@altlinux.org>
sha256sums=(92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338 # strace-6.0.tar.xz
cf9b4922340bfcbc9f58af10350d9c4156aadd57bac45cca1481f6facdb6ae1c) # strace-6.0.tar.xz.asc