See script.sh
and PKGBUILD
Last active
February 22, 2016 00:39
-
-
Save bitjockey42/9463a5e8be54ba0463a4 to your computer and use it in GitHub Desktop.
broadcom-wl-dkms [AUR] modified PKGBUILD because verification of www.broadcom.com fails with curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Andrey Vihrov <andrey.vihrov at gmail.com> | |
# Contributor: Frank Vanderham <twelve.eighty (at) gmail.> | |
pkgname=broadcom-wl-dkms | |
pkgver=6.30.223.271 | |
pkgrel=4 | |
pkgdesc="Broadcom 802.11 Linux STA wireless driver" | |
arch=('i686' 'x86_64') | |
url="https://www.broadcom.com/support/?gid=1" | |
license=('custom') | |
depends=('dkms') | |
optdepends=('linux-headers: build modules against Arch kernel' | |
'linux-lts-headers: build modules against LTS Arch kernel') | |
conflicts=('broadcom-wl') | |
install=broadcom-wl-dkms.install | |
source=('broadcom-wl-dkms.conf' | |
'dkms.conf.in' | |
'001-null-pointer-fix.patch' | |
'002-rdtscl.patch') | |
source_i686=("hybrid-v35-nodebug-pcoem-${pkgver//./_}.tar.gz") | |
source_x86_64=("hybrid-v35_64-nodebug-pcoem-${pkgver//./_}.tar.gz") | |
sha256sums=('b97bc588420d1542f73279e71975ccb5d81d75e534e7b5717e01d6e6adf6a283' | |
'c59c3ccf5238fe93cc671e6fa2f6614c0bfec073dc79bfda4d14e3a5be96eac8' | |
'32e505a651fdb9fd5e4870a9d6de21dd703dead768c2b3340a2ca46671a5852f' | |
'4ea03f102248beb8963ad00bd3e36e67519a90fa39244db065e74038c98360dd') | |
sha256sums_i686=('4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd') | |
sha256sums_x86_64=('5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be') | |
prepare() { | |
sed -i -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" src/wl/sys/wl_linux.c | |
patch -p1 < 001-null-pointer-fix.patch | |
patch -p1 < 002-rdtscl.patch | |
sed -e "s/@PACKAGE_VERSION@/${pkgver}/" dkms.conf.in > dkms.conf | |
} | |
package() { | |
local dest="${pkgdir}/usr/src/${pkgname/-dkms/}-${pkgver}" | |
mkdir -p "${dest}" | |
cp -RL src lib Makefile dkms.conf "${dest}" | |
chmod a-x "${dest}/lib/LICENSE.txt" # Ships with executable bits set | |
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" | |
ln -rs "${dest}/lib/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
install -D -m 644 broadcom-wl-dkms.conf "${pkgdir}/usr/lib/modprobe.d/broadcom-wl-dkms.conf" | |
} | |
# vim:set ts=2 sw=2 et: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Based on this: https://bbs.archlinux.org/viewtopic.php?pid=1605719#p1605719 | |
cd /tmp | |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/broadcom-wl-dkms.tar.gz | |
tar xvzf broadcom-wl-dkms.tar.gz | |
mkdir www.broadcom.com | |
cd www.broadcom.com | |
curl -O https://www.entrust.com/root-certificates/entrust_g2_ca.cer | |
curl -O https://www.entrust.com/root-certificates/entrust_l1k.cer | |
cd .. | |
c_rehash www.broadcom.com/ | |
arch="" | |
if [ "$(uname -m)" == "x86_64" ] | |
then | |
arch="_64" | |
fi | |
curl --capath www.broadcom.com -O https://www.broadcom.com/docs/linux_sta/hybrid-v35$arch-nodebug-pcoem-6_30_223_271.tar.gz | |
mv hybrid-v35{,_64}-nodebug-pcoem-6_30_223_271.tar.gz broadcom-wl-dkms/ | |
cd broadcom-wl-dkms | |
curl -o PKGBUILD https://gist.githubusercontent.com/0x414A/9463a5e8be54ba0463a4/raw/PKGBUILD | |
updpkgsums | |
makepkg -si |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment