summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9e0753f424c..8c02f3fe1df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,35 +4,39 @@
pkgname=dkms-frandom
pkgver=1.1
-pkgrel=4
+pkgrel=5
pkgdesc="A very fast random number generator kernel module (DKMS version)"
arch=('any')
url="http://frandom.sourceforge.net/"
license=('GPL')
-depends=('dkms' 'linux-headers')
+depends=('dkms')
+optdepends=('linux-headers')
provides=("frandom=${pkgver}")
conflicts=("frandom")
-install=${pkgname}.install
options=(!strip)
_pkgname=frandom
source=("http://prdownloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz"
'frandom.udev.patch'
+'kernel412.patch'
'dkms.conf'
'Makefile')
-build(){
- patch $srcdir/$_pkgname-$pkgver/10-frandom.rules $srcdir/frandom.udev.patch
+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 -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"
+ 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')