summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19d68e3b4ed0d41a6ef928b043a555063c091b29 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer    : Vincent Grande <shoober420@gmail.com>
# Contributor   : Eric Vidal <eric@obarun.org>
# Contributor   : Jean-Michel T.Dydak <jean-michel@obarun.org>
#----------------
# Website       : https://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
#-----------------------------------------------------------------------------------------------

pkgname=lib32-kmod-minimal-git
pkgver=28
pkgrel=1
pkgdesc="Linux kernel module handling"
arch=('x86_64')
url="https://www.kernel.org/pub/linux/utils/kernel/kmod"
license=('GPL2')
source=("git+https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git")

options=('!libtool')

depends=(
    'lib32-zlib'
    'lib32-xz')

makedepends=(
    'lib32-gcc-libs'
    'gcc-multilib')

provides=(lib32-kmod)
conflicts=(lib32-kmod)
#-----------------------------------------------------------------------------------------------
pkgver() {
  cd kmod
  git describe --tags | sed 's/-/+/g'
}

build() {

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

    cd kmod

    ./autogen.sh
    ./configure \
        --libdir=/usr/lib32 \
        --sysconfdir=/etc \
        --disable-tools \
        --with-zlib \
        --with-xz \
	--disable-logging \
	--disable-debug \
	--disable-gtk-doc
    make
}

package() {

    cd kmod

    make DESTDIR="${pkgdir}" install

    rm -rf "${pkgdir}"/usr/{share,include,bin}
}

#-----------------------------------------------------------------------------------------------
#validpgpkeys=('EAB33C9690013C733916AC839BA2A5A630CBEA53' # Lucas DeMarchi

sha512sums=('SKIP')