summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c02f3fe1dfe9e644447b929767f1b6dc61ae2e2 (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
# Maintainer: Tom < reztho at archlinux dot us >
# Thanks to contributors/mantainers of frandom and dkms-nvidia packages
# since I used those packages as templates to make this one

pkgname=dkms-frandom
pkgver=1.1
pkgrel=5
pkgdesc="A very fast random number generator kernel module (DKMS version)"
arch=('any')
url="http://frandom.sourceforge.net/"
license=('GPL')
depends=('dkms')
optdepends=('linux-headers')
provides=("frandom=${pkgver}")
conflicts=("frandom")
options=(!strip)
_pkgname=frandom
source=("http://prdownloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz"
'frandom.udev.patch'
'kernel412.patch'
'dkms.conf'
'Makefile')

build() {
    cd "$srcdir/$_pkgname-${pkgver}"
    patch -p1 -i "$srcdir/frandom.udev.patch"
    patch -p1 -i "$srcdir/kernel412.patch"
}

package() {
    install -dm755 "$pkgdir/usr/src/$_pkgname-$pkgver"
    install -m644  "$srcdir/$_pkgname-$pkgver/"*  "$pkgdir/usr/src/$_pkgname-$pkgver"
    install -Dm644 "$srcdir/$_pkgname-$pkgver/10-$_pkgname.rules" "$pkgdir/usr/lib/udev/rules.d/10-$_pkgname.rules"
    install -m644 "$srcdir/dkms.conf" "$pkgdir/usr/src/$_pkgname-$pkgver"
    install -m644 "$srcdir/Makefile" "$pkgdir/usr/src/$_pkgname-$pkgver"
}

md5sums=('aade48078496da7439eda41937a34e61'
         'f9a36f3a3c7f9caaae6475f6edea079c'
         '57ef5bb4df764a508264a49f00c70609'
         '6b6ac64454740d8ba7d065a1ae903701'
         '1e94254311f05274035b5e41ff5a7a33')