diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-04 16:45:05 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-07 08:45:22 +0700 |
commit | 665d36fb025bcdbd2fa766da587026e3ffca5a74 (patch) | |
tree | 689f5c3133c3147fbec9ee541f02265b6e77a368 /network/rtl8188eu | |
parent | 8873450359dbca2ecdcae0f783bfb4ca7dad34a6 (diff) | |
download | slackbuilds-665d36fb025bcdbd2fa766da587026e3ffca5a74.tar.gz |
network/rtl8188eu: Re-added (fixed build for 15.0).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/rtl8188eu')
-rw-r--r-- | network/rtl8188eu/README | 4 | ||||
-rw-r--r-- | network/rtl8188eu/doinst.sh | 3 | ||||
-rw-r--r-- | network/rtl8188eu/git2tarxz.sh | 64 | ||||
-rw-r--r-- | network/rtl8188eu/rtl8188eu.SlackBuild | 99 | ||||
-rw-r--r-- | network/rtl8188eu/rtl8188eu.info | 10 | ||||
-rw-r--r-- | network/rtl8188eu/slack-desc | 19 |
6 files changed, 199 insertions, 0 deletions
diff --git a/network/rtl8188eu/README b/network/rtl8188eu/README new file mode 100644 index 0000000000..b97bf1a9d3 --- /dev/null +++ b/network/rtl8188eu/README @@ -0,0 +1,4 @@ +rtl8188eu +========= + +Repository for the stand-alone RTL8188EU driver. diff --git a/network/rtl8188eu/doinst.sh b/network/rtl8188eu/doinst.sh new file mode 100644 index 0000000000..b17f2a6739 --- /dev/null +++ b/network/rtl8188eu/doinst.sh @@ -0,0 +1,3 @@ +if [ -x sbin/depmod ]; then + chroot . /sbin/depmod -a 1> /dev/null 2> /dev/null +fi diff --git a/network/rtl8188eu/git2tarxz.sh b/network/rtl8188eu/git2tarxz.sh new file mode 100644 index 0000000000..268cda111f --- /dev/null +++ b/network/rtl8188eu/git2tarxz.sh @@ -0,0 +1,64 @@ +#!/bin/sh + +# Create source tarball from git repo, with generated version number. + +# Takes one optional argument, which is the commit or tag to create a +# tarball of. With no arg, HEAD is used. + +# Version number example: 0.0.1+20200227_ad7ec17 + +# Notes: + +# Do not use this if you're packaging a release. + +# This script doesn't need to be run as root. It does need to be able +# to write to the current directory it's run from. + +# Running this script twice for the same commit will NOT give identical +# tarballs, even if the contents are identical. This is because tar +# includes the current time in a newly-created tarball (plus there may +# be other git-related reasons). + +# Once you've generated a tarball, you'll still need a place to host it. +# Ask on the mailing list, if you don't have your own web server to +# play with. + +# WARNING: this is a nonstandard git2tarxz.sh. +# The Makefile for rtl8188eu *insists* on being run from an +# actual git checkout (with .git/ dir), so I'm leaving that +# stuff in the tarball. + +PRGNAM=rtl8188eu +CLONE_URL=https://github.com/lwfinger/rtl8188eu + +set -e + +GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX ) +rm -rf $GITDIR +git clone $CLONE_URL $GITDIR + +CWD="$( pwd )" +cd $GITDIR + +if [ "$1" != "" ]; then + git reset --hard "$1" || exit 1 +fi + +GIT_SHA=$( git rev-parse --short HEAD ) + +DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 ) + +VERSION=${DATE}_${GIT_SHA} + +#rm -rf .git +#find . -name .gitignore -print0 | xargs -0 rm -f + +cd "$CWD" +rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz +mv $GITDIR $PRGNAM-$VERSION +tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION + +echo +echo "Created tarball: $PRGNAM-$VERSION.tar.xz" +echo "VERSION=\"$VERSION\"" +echo "MD5SUM=\"$( md5sum $PRGNAM-$VERSION.tar.xz | cut -d' ' -f1 )\"" diff --git a/network/rtl8188eu/rtl8188eu.SlackBuild b/network/rtl8188eu/rtl8188eu.SlackBuild new file mode 100644 index 0000000000..128d11a6f3 --- /dev/null +++ b/network/rtl8188eu/rtl8188eu.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/bash +# Slackware build script for rtl8188eu +# +# Copyright (c) 2015 m.budiman <mbembi@operamail.com> +# All rights reserved. +# +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# ----------------------------------------------------------------------------- + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=rtl8188eu +VERSION=${VERSION:-20220203_775137f} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +KERNEL=${KERNEL:-$(uname -r)} +PKGVER=${VERSION}_$(echo $KERNEL | tr - _) + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +env -u ARCH make + +install -D -m 0644 rtl8188eufw.bin $PKG/lib/firmware/rtlwifi/rtl8188eufw.bin +install -D -m 0644 rtl8188eufw.bin $PKG/lib/firmware/rtl8188eufw.bin +install -D -m 0644 8188eu.ko $PKG/lib/modules/$KERNEL/kernel/drivers/net/wireless/8188eu.ko + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; +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 diff --git a/network/rtl8188eu/rtl8188eu.info b/network/rtl8188eu/rtl8188eu.info new file mode 100644 index 0000000000..7feefa4373 --- /dev/null +++ b/network/rtl8188eu/rtl8188eu.info @@ -0,0 +1,10 @@ +PRGNAM="rtl8188eu" +VERSION="20220203_775137f" +HOMEPAGE="https://github.com/lwfinger/rtl8188eu" +DOWNLOAD="https://slackware.uk/~urchlay/src/rtl8188eu-20220203_775137f.tar.xz" +MD5SUM="44d6c4f53e23dd981487c93c63887ebe" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="m. budiman" +EMAIL="mbembi@operamail.com" diff --git a/network/rtl8188eu/slack-desc b/network/rtl8188eu/slack-desc new file mode 100644 index 0000000000..8cba47e3b3 --- /dev/null +++ b/network/rtl8188eu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +rtl8188eu: rtl8188eu (rtl-8188eu driver) +rtl8188eu: +rtl8188eu: Driver for Realtek wireless network adapters using the rtl8188eu +rtl8188eu: chipsets. +rtl8188eu: +rtl8188eu: For more information, visit the project's home page at: +rtl8188eu: +rtl8188eu: https://github.com/lwfinger/rtl8188eu +rtl8188eu: +rtl8188eu: +rtl8188eu: |