aboutsummaryrefslogtreecommitdiffstats
path: root/main/strace/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/strace/APKBUILD')
-rw-r--r--main/strace/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/strace/APKBUILD b/main/strace/APKBUILD
new file mode 100644
index 0000000000..eff517edcb
--- /dev/null
+++ b/main/strace/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=strace
+pkgver=4.6
+pkgrel=0
+pkgdesc="A useful diagnositic, instructional, and debugging tool"
+url="http://sourceforge.net/projects/strace/"
+arch="all"
+license="BSD"
+depends=
+makedepends=
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"
+subpackages="$pkgname-doc"
+
+build ()
+{
+ cd "$srcdir/$pkgname-$pkgver"
+ #changes in kernel headers in 2.6.32
+ sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' \
+ configure
+ ./configure --prefix=/usr \
+
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -j1 DESTDIR="$pkgdir" install
+}
+md5sums="e537b2b1afeec70c0e6e27a0d0fd671e strace-4.6.tar.xz"