blob: 9b8899c53970cf312c1116e50d6f6bc7c0ee6c01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: CJacob314 <jacob AT jacobcohen DOT info>
pkgname=strace-libdw-git
pkgver=r0.0
pkgrel=1
pkgdesc="A diagnostic, debugging and instructional userspace tracer with libdw support for better, source-aware backtraces"
arch=('x86_64')
url="https://strace.io/"
license=('0BSD')
# libelf for libdw, GLIBC obvious
depends=('glibc' 'libelf')
# Some strace test scripts use perl
optdepends=('perl')
makedepends=('git' 'make')
provides=("strace=$pkgver")
conflicts=('strace')
source=("git+https://github.com/strace/strace.git")
sha256sums=('SKIP')
pkgver() {
cd "strace"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "strace"
./bootstrap
./configure \
--prefix="/usr" \
--with-libdw
make -j4
}
check() {
cd "strace"
make check
}
package() {
cd "strace"
make DESTDIR="$pkgdir" install
install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/strace"
}
|