diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2016-09-23 04:46:12 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-23 04:46:12 +0700 |
commit | ea7c5ff5f4897323d9044455a00fc82782fec8d9 (patch) | |
tree | 57f5d2886870b24df1074c8ef161c19c9875b47b /network/r8168/r8168.SlackBuild | |
parent | 9a4f2a6a3802d6a6a7c44f095838944d224528fa (diff) | |
download | slackbuilds-ea7c5ff5f4897323d9044455a00fc82782fec8d9.tar.gz |
network/r8168: Updated for version 8.042.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/r8168/r8168.SlackBuild')
-rw-r--r-- | network/r8168/r8168.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/network/r8168/r8168.SlackBuild b/network/r8168/r8168.SlackBuild index 066fbe7c97..5f6e9536e5 100644 --- a/network/r8168/r8168.SlackBuild +++ b/network/r8168/r8168.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=r8168 -VERSION=${VERSION:-8.041.00} +VERSION=${VERSION:-8.042} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,10 +41,10 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} KERNEL=${KERNEL:-$(uname -r)} -PKGVER=$(echo ${VERSION}_$KERNEL | tr - _) +PKGVER=${VERSION}_$KERNEL -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -72,6 +72,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# PATCH for 4.7.3 +# https://github.com/mtorromeo/r8168/pull/7 +zcat $CWD/4.7.3.diff.gz | patch -p1 + make -C /lib/modules/$KERNEL/build \ SUBDIRS="$TMP/$PRGNAM-$VERSION/src" \ EXTRA_CFLAGS="$SLKCFLAGS" \ @@ -86,6 +90,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |