summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 522eaa1dd621ac351999aa63d4318ed0a41aa28a (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
# Maintainer: Gustavo Costa <xfgusta@gmail.com>

pkgname=strace-with-colors
_pkgname=strace
pkgver=6.0
pkgrel=1
pkgdesc='A diagnostic, debugging and instructional userspace tracer (with colors)'
arch=(x86_64)
url='https://strace.io/'
license=(BSD)
depends=(perl libunwind)
conflicts=($_pkgname)
provides=($_pkgname)
source=("https://github.com/strace/strace/releases/download/v$pkgver/strace-$pkgver.tar.xz"
        "$pkgname.patch")
sha1sums=('6ac0fb07dbeb29a79e17d81f735aacb326a72c28'
          'SKIP')

prepare() {
  patch -d "$_pkgname-$pkgver" -p1 -i ../$pkgname.patch
}

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr --with-libunwind --enable-mpers=no
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}