Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Based on the file created for Arch Linux by:
- # Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
- # Bob Fanger < bfanger(at)gmail >
- # Filip <fila pruda com>, Det < nimetonmaili(at)gmail >
- # Maintainer: Philip Muller <philm@manjaro.org>
- # Maintainer: Guinux <guillaume@manjaro.org>
- # Maintainer: Rob McCathie <rob@manjaro.org>
- _linuxprefix=linux-lqx
- _extramodules=extramodules-lqx
- #kver=50
- pkgname=r8168-$_linuxprefix #-$kver
- _pkgname=r8168
- pkgver=8.047.04
- pkgrel=7
- pkgdesc="A kernel module for Realtek 8168 network cards"
- url="http://www.realtek.com.tw"
- license=("GPL")
- arch=('i686' 'x86_64')
- depends=('glibc' "$_linuxprefix")
- makedepends=("$_linuxprefix-headers")
- conflicts=("linux-lqx-r8168" "r8168-linux-lqx-${prev_kver}")
- provides=("$_pkgname=$pkgver")
- groups=("$_linuxprefix-extramodules")
- source=("https://github.com/mtorromeo/r8168/archive/$pkgver/$_pkgname-$pkgver.tar.gz" 'linux-4.15.patch')
- sha256sums=('4a201c7691b66e47f19172367c70a14b8b38d600f0739719c57dba9c0cf3f17a'
- '1c9f5bd2890bc98b552bd1b7acc91885c4ed013a2c188bfab70ddaae058fa241')
- install=$_pkgname.install
- #prepare() {
- # cd "$_pkgname-$pkgver"
- # patch -p1 -i "$srcdir/linux-4.15.patch"
- #}
- build() {
- _kernver="$(cat /usr/lib/modules/$_extramodules/version || true)"
- cd "$_pkgname-$pkgver"
- # avoid using the Makefile directly -- it doesn't understand
- # any kernel but the current.
- make -C /usr/lib/modules/$_kernver/build \
- SUBDIRS="$srcdir/$_pkgname-$pkgver/src" \
- EXTRA_CFLAGS="-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN" \
- modules
- }
- package() {
- cd "$srcdir/$_pkgname-$pkgver/src"
- install -D -m644 $_pkgname.ko "$pkgdir/usr/lib/modules/$_extramodules/$_pkgname.ko"
- # set the kernel we've built for inside the install script
- sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${_extramodules}/g" "${startdir}/${_pkgname}.install"
- find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement