Permalink
Browse files

kmod-git: cleanup PKGBUILD

  • Loading branch information...
1 parent 3c02fbf commit b3659b8cbeb1b868c40b8d4c7258356270d90c26 @falconindy committed Aug 6, 2012
Showing with 16 additions and 21 deletions.
  1. +16 −21 kmod-git/PKGBUILD
View
@@ -1,23 +1,22 @@
# Maintainer: Dave Reisner <dreisner@archlinux.org>
pkgname=kmod-git
-pkgver=20120121
+pkgver=20120728
pkgrel=1
pkgdesc="interface to kernel module operations"
arch=('i686' 'x86_64')
-url="http://git.profusion.mobi/cgit.cgi/kmod.git/"
+url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary"
license=('GPL2')
depends=('glibc' 'zlib')
-makedepends=('git')
+makedepends=('git' 'gtk-doc')
conflicts=('kmod' 'module-init-tools')
provides=('kmod=5' 'module-init-tools=3.16')
replaces=('module-init-tools')
options=('!libtool')
-backup=('lib/depmod.d/search.conf')
source=('depmod-search.conf')
md5sums=('4b8cbcbc54b9029c99fd730e257d4436')
-_gitroot="git://git.profusion.mobi/kmod.git"
+_gitroot="git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git"
_gitname="kmod"
build() {
@@ -37,12 +36,10 @@ build() {
cp -r "$_gitname"{,-build}
cd "$_gitname-build"
- ./autogen.sh
- ./configure \
- --sysconfdir=/etc \
- --bindir=/usr/bin \
- --with-rootprefix= \
- --with-zlib
+ ./bootstrap-configure \
+ --enable-debug \
+ --with-rootprefix=/usr \
+ --without-xz
make
}
@@ -54,20 +51,18 @@ check() {
package() {
make -C "$_gitname-build" DESTDIR="$pkgdir" install
- # tool directories
- install -dm755 "$pkgdir"/{,s}bin
+ # extra directories
+ install -dm755 "$pkgdir"/sbin "$pkgdir"/{etc,lib}/{depmod,modprobe}.d
- # config directories
- install -dm755 "$pkgdir"/{etc,lib}/{depmod,modprobe}.d
-
- # tool symlinks
- ln -s /usr/bin/kmod "$pkgdir/bin/lsmod"
- for tool in {ins,rm,dep}mod mod{info,probe}; do
- ln -s ../usr/bin/kmod "$pkgdir/sbin/$tool"
+ # add symlinks to kmod
+ ln -s ../usr/bin/kmod "$pkgdir/sbin/modprobe"
+ ln -s ../usr/bin/kmod "$pkgdir/sbin/depmod"
+ for tool in {ins,ls,rm}mod modinfo; do
+ ln -s kmod "$pkgdir/usr/bin/$tool"
done
# install depmod.d file for search/ dir
- install -m644 "$srcdir/depmod-search.conf" "$pkgdir/lib/depmod.d/search.conf"
+ install -m644 "depmod-search.conf" "$pkgdir/lib/depmod.d/search.conf"
}
# vim: ft=sh syn=sh et

0 comments on commit b3659b8

Please sign in to comment.