summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56dac0a2af4bbf4f86dd63267cc8e955015aedd5 (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
# Maintainer: Christian Babeux <christian.babeux@0x80.ca>

pkgname=lttng-modules-git
_gitname="lttng-modules"
pkgver=2.7.0.rc1.11.gc7d89a6
pkgrel=1
pkgdesc="Kernel Modules for LTTng"
arch=('i686' 'x86_64')
url="http://lttng.org/"
license=('LGPL2.1' 'GPL2' 'MIT')
depends=('linux>=2.6.38')
makedepends=('linux-headers' 'git')
provides=('lttng-modules')
conflicts=('lttng-modules')
install=${pkgname}.install
source=('git://git.lttng.org/lttng-modules.git')
sha1sums=('SKIP')

pkgver()
{
    cd ${_gitname}
    git describe --always | sed 's/-/./g;s/^v//'
}


build()
{
    cd ${_gitname}
    make
}

package() 
{
    cd ${_gitname}
    make modules_install INSTALL_MOD_PATH=${pkgdir}/usr
    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}