summaryrefslogtreecommitdiff
path: root/multilib/lib32-kmod/PKGBUILD
blob: 5f860b7b3ea0cf2a93510e31f090b45946749942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 146696 2012-01-16 19:19:14Z dreisner $
# Maintainer: Dave Reisner <dreisner@archlinux.org>

pkgname=lib32-kmod
_pkgbasename=kmod
pkgver=4
pkgrel=1
pkgdesc="Linux kernel module handling"
arch=('x86_64')
url="http://git.profusion.mobi/cgit.cgi/kmod.git"
license=('GPL2')
depends=('lib32-glibc' 'lib32-zlib' "$_pkgbasename")
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://packages.profusion.mobi/$_pkgbasename/$_pkgbasename-$pkgver.tar.xz")
md5sums=('e14450a066a48accd0af1995b3c0232d')

build() {
  cd "$_pkgbasename-$pkgver"

  export CC="gcc -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  ./configure \
    --libdir=/usr/lib32 \
    --sysconfdir=/etc \
    --disable-tools \
    --with-rootprefix= \
    --with-zlib

  make
}

package() {
  make -C "$_pkgbasename-$pkgver" DESTDIR="$pkgdir" install

  # nuke manpages and headers
  rm -rf "$pkgdir"/usr/{share,include,bin}
}

# vim: ft=sh syn=sh et