diff options
Diffstat (limited to 'community/r8168/PKGBUILD')
-rw-r--r-- | community/r8168/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/r8168/PKGBUILD b/community/r8168/PKGBUILD new file mode 100644 index 000000000..10afb9759 --- /dev/null +++ b/community/r8168/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 58713 2011-11-17 21:35:20Z mtorromeo $ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor: Bob Fanger < bfanger(at)gmail > +# Contributor: Filip <fila pruda com>, Det < nimetonmaili(at)gmail > + +pkgname=r8168 +pkgver=8.026.00 +pkgrel=3 +pkgdesc="A kernel module for Realtek 8168 network cards" +url="http://www.realtek.com.tw" +license=("GPL") +arch=('i686' 'x86_64') +depends=('glibc' 'linux>=3.1' 'linux<3.2') +makedepends=('linux-headers') +source=(http://r8168.googlecode.com/files/$pkgname-$pkgver.tar.bz2) +install=$pkgname.install + +_extramodules=extramodules-3.1-ARCH +_kernver="$(cat /lib/modules/$_extramodules/version || true)" + +build() { + cd "$srcdir/$pkgname-$pkgver" + make clean SYSSRC=/usr/src/linux-$_kernver modules +} + +package() { + cd "$srcdir/$pkgname-$pkgver/src" + install -D -m644 $pkgname.ko "$pkgdir/lib/modules/$_extramodules/$pkgname.ko" +} + +md5sums=('cd0b93af17e18eb20cbfb8c5dee40f51') +sha256sums=('e0a58706a956f22f6f44a617d218693888bfc5d3eba7197e61ed6cb75eebb425') |