summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/ksymoops/APKBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/main/ksymoops/APKBUILD b/main/ksymoops/APKBUILD
index 2e1a95dd8..09411308d 100644
--- a/main/ksymoops/APKBUILD
+++ b/main/ksymoops/APKBUILD
@@ -1,24 +1,33 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ksymoops
pkgver=2.4.11
-pkgrel=2
+pkgrel=3
pkgdesc="A Linux kernel Oops file troubleshooting tool"
url="ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4"
arch="all"
license="GPL-2"
depends=""
makedepends="!gettext !libiconv"
-source="ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/v2.4/$pkgname-$pkgver.tar.bz2
+source="http://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/v2.4/$pkgname-$pkgver.tar.bz2
$pkgname-2.4.11-build.patch
"
subpackages="$pkgname-doc"
-build ()
-{
- cd "$srcdir/$pkgname-$pkgver"
- patch -p1 < ../$pkgname-2.4.11-build.patch || return 1
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ patch -p1 < "$srcdir"/$pkgname-2.4.11-build.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make install \
+ INSTALL=install \
INSTALL_PREFIX="$pkgdir"/usr \
INSTALL_MANDIR="$pkgdir"/usr/share/man
}