diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 69 | ||||
-rw-r--r-- | blacklist-r8188eu.conf | 1 |
4 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0a246becb278 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = 8188eu-dkms-git + pkgdesc = Standalone driver for Realtek RTL8188EUS (RTL8188EUS, RTL8188ETV) WLAN + pkgver = 1.0.a0619a0 + pkgrel = 1 + url = https://github.com/lwfinger/rtl8188eu + arch = any + license = GPL + depends = dkms + conflicts = 8188eu-dkms + conflicts = rtl8188eu-dkms + conflicts = rtl8188eu-dkms-git + conflicts = rtl8188eu-git + source = 8188eu::git+https://github.com/lwfinger/rtl8188eu + source = blacklist-r8188eu.conf + sha256sums = SKIP + sha256sums = edaeafe28410017fabb742d6ccdf060a945150fb56e41084adb7b9dd66739e2b + +pkgname = 8188eu-dkms-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..838b808fbc13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.xz +pkg +src +8188eu diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..53569f97dfbf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Alexander Blinne <alexander@blinne.net> + +_pkgname=8188eu +pkgname="${_pkgname}-dkms-git" +_pkgver=1.0 +pkgver=1.0.a0619a0 +pkgrel=1 +pkgdesc='Standalone driver for Realtek RTL8188EUS (RTL8188EUS, RTL8188ETV) WLAN' +arch=('any') +url="https://github.com/lwfinger/rtl8188eu" +license=('GPL') +depends=('dkms') +source=("${_pkgname}::git+${url}" + blacklist-r8188eu.conf) +sha256sums=('SKIP' + 'edaeafe28410017fabb742d6ccdf060a945150fb56e41084adb7b9dd66739e2b') +conflicts=('8188eu-dkms' 'rtl8188eu-dkms' 'rtl8188eu-dkms-git' 'rtl8188eu-git') + +pkgver() { + cd "${_pkgname}" + + echo $(echo ${_pkgver}. && git rev-parse --short HEAD) | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/\.rc/rc/;s/ //g' +} + + +prepare() { + cd "${_pkgname}" + + local i; for i in "${source[@]}"; do + case $i in + *.patch) + msg2 "Applying patch ${i}" + patch -p1 -i "${srcdir}/${i}" + esac + done + + # Disable power saving + sed -i 's/^CONFIG_POWER_SAVING \= y/CONFIG_POWER_SAVING = n/' Makefile +} + +build() { + cd "${_pkgname}" + + # Set name and version for dkms.conf + sed -e "s/PACKAGE_NAME=\"8188eu\"/PACKAGE_NAME=${_pkgname}/" \ + -e "s/PACKAGE_VERSION=\"1.0\"/PACKAGE_VERSION=${pkgver}/" \ + -i dkms.conf +} + + +package() { + cd "${srcdir}" + + local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}" + + # Blacklist r8188eu + install -Dm644 blacklist-r8188eu.conf "${pkgdir}/etc/modprobe.d/r8188eu.conf" + + # Copy sources + cd "${_pkgname}" + + for d in $(find . -type d); do + install -dm755 "${install_dir}/$d" + done + + for f in $(find . -type f); do + install -m644 "$f" "${install_dir}/$f" + done +} diff --git a/blacklist-r8188eu.conf b/blacklist-r8188eu.conf new file mode 100644 index 000000000000..1289e57b7f6b --- /dev/null +++ b/blacklist-r8188eu.conf @@ -0,0 +1 @@ +blacklist r8188eu |