diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,4 +1,4 @@ -# $Id: PKGBUILD 178168 2016-06-08 05:41:00Z tpowa $ +# $Id: PKGBUILD 187549 2016-08-25 20:13:53Z tpowa $ # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> # Contributor: Bob Fanger < bfanger(at)gmail > # Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail > @@ -6,7 +6,7 @@ pkgname=r8168-aufs _pkgname=r8168 pkgver=8.042 -pkgrel=2 +pkgrel=4 pkgdesc="A kernel module for Realtek 8168 network cards" url="http://www.realtek.com.tw" license=("GPL") @@ -15,17 +15,20 @@ depends=('glibc' 'linux-aufs_friendly') makedepends=('linux-aufs_friendly-headers') install=$_pkgname.install source=(https://github.com/mtorromeo/r8168/archive/$pkgver/$_pkgname-$pkgver.tar.gz - linux-4.5.patch) + linux-4.5.patch + linux-4.7.patch) sha256sums=('9dd8ae22115bcbef98c15b0b1e2160300cce3129ef7e0485d7e577188ba3fcc2' - 'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e') + 'e05a4bccf28beecc97db246064a5fe80d1303476b76086bd262c9c8db82b2e6e' + 'bbdc817278b17a1803c74228eaccbddb347ae92424a9a6cc92a68946f5392969') prepare() { cd "$_pkgname-$pkgver" patch -p1 -i ../linux-4.5.patch + patch -p1 -i ../linux-4.7.patch } build() { - _kernver=$(pacman -Q linux-aufs_friendly | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-aufs_friendly/version) cd "$_pkgname-$pkgver" @@ -39,8 +42,8 @@ build() { } package() { - _kernver=$(pacman -Q linux-aufs_friendly | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') - depends=("linux-aufs_friendly>=$_kernver" "linux-aufs_friendly<${_kernver/.*}.$(expr ${_kernver/*.} + 1)") + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} + 1)") KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-aufs_friendly/version) msg "Kernel = $KERNEL_VERSION" |