mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-11 03:32:17 +01:00
This reverts commit 56605661d6dadc843d08041e18b608f99b427d58. Breaks arm and aarch64 builds.
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=strace
|
|
pkgver=4.15
|
|
pkgrel=0
|
|
pkgdesc="A useful diagnositic, instructional, and debugging tool"
|
|
url="http://sourceforge.net/projects/strace/"
|
|
arch="all"
|
|
license="BSD"
|
|
depends=
|
|
makedepends="linux-headers"
|
|
subpackages="$pkgname-doc"
|
|
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"
|
|
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
prepare() {
|
|
default_prepare || return 1
|
|
sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' \
|
|
"$builddir"/configure || return 1
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
case "$CLIBC" in
|
|
musl) export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" ;;
|
|
esac
|
|
|
|
ac_cv_have_long_long_off_t=yes \
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
md5sums="1ff96209fec19914c920608ed0791864 strace-4.15.tar.xz"
|
|
sha256sums="c0cdc094d6141fd9dbf6aaad605142d651ae10998b660fda57fc61f7ad583ca9 strace-4.15.tar.xz"
|
|
sha512sums="15e96c31d901c94dc40de67a65365c6cc9a7b7b2bf96a735f5d20cbd54dc75d941e0c1da206aa76f6e98d1013bfeecb42800b23c9e146eaf756775d525fe1b66 strace-4.15.tar.xz"
|