summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-31 16:48:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-31 16:48:11 +0000
commit5d0a8bbb6f6fae30060f7a159ba68c31745dd477 (patch)
treeeaa9a6f706e1fd9b4ad28282be7f30d652e7d4af /main
parent9c921c2b98a2fe8a0e9b1b3e44a0a951b1676024 (diff)
downloadaports-fcolista-5d0a8bbb6f6fae30060f7a159ba68c31745dd477.tar.bz2
aports-fcolista-5d0a8bbb6f6fae30060f7a159ba68c31745dd477.tar.xz
main/ksymoops: use http source instead of ftp + build cleanup/fix
Diffstat (limited to 'main')
-rw-r--r--main/ksymoops/APKBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/main/ksymoops/APKBUILD b/main/ksymoops/APKBUILD
index 2e1a95dd8d..09411308d4 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
}