aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/oprofile/APKBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/main/oprofile/APKBUILD b/main/oprofile/APKBUILD
index bc81fff7a9..87d9f2ba80 100644
--- a/main/oprofile/APKBUILD
+++ b/main/oprofile/APKBUILD
@@ -7,7 +7,7 @@ pkgdesc="A System Profiler for Linux"
url="http://oprofile.sourceforge.net/"
license="GPL"
depends=""
-makedepends="libiconv-dev popt-dev gettext"
+makedepends="libiconv-dev popt-dev gettext-dev"
install=
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
@@ -17,10 +17,9 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
- for i in ../*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
- done
+ if [ "$CARCH" != "x86_64" ]; then
+ patch -p1 -i "$srcdir"/oprofile-pic.patch
+ fi
}
build() {
@@ -33,6 +32,10 @@ build() {
--with-kernel-support \
--with-pic
make -j1 || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
#install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd