[arch-commits] Commit in broadcom-wl/repos (2 files)

Jan Steffens heftig at archlinux.org
Wed May 22 14:36:23 UTC 2019


    Date: Wednesday, May 22, 2019 @ 14:36:22
  Author: heftig
Revision: 468475

archrelease: copy trunk to community-staging-x86_64

Added:
  broadcom-wl/repos/community-staging-x86_64/
  broadcom-wl/repos/community-staging-x86_64/PKGBUILD
    (from rev 468468, broadcom-wl/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: broadcom-wl/repos/community-staging-x86_64/PKGBUILD (from rev 468468, broadcom-wl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-22 14:36:22 UTC (rev 468475)
@@ -0,0 +1,38 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_module=broadcom-wl
+_kernelname=              # Build against stock -ARCH kernel
+#_kernelname=-custom      # Build against kernel with a different name
+pkgname=${_module}${_kernelname}
+pkgver=6.30.223.271
+pkgrel=104
+pkgdesc='Broadcom 802.11 Linux STA wireless driver'
+arch=('x86_64')
+url='https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure'
+license=('custom')
+depends=("linux${_kernelname}")
+makedepends=("linux${_kernelname}-headers" "${_module}-dkms=${pkgver}")
+
+_extramodules="/usr/lib/modules/extramodules${_kernelname:--ARCH}"
+
+build() {
+    _kernver="$(<${_extramodules}/version)"
+
+    dkms build --dkmstree "${srcdir}" -m ${_module}/${pkgver} -k ${_kernver}
+}
+
+package() {
+    _kernver="$(<${_extramodules}/version)"
+
+    install -Dm644 -t "${pkgdir}${_extramodules}" \
+        ${_module}/${pkgver}/${_kernver}/${CARCH}/module/*
+
+    _license="/usr/share/licenses/${_module}-dkms"
+    if [[ -d ${_license} ]]; then
+        install -Dm644 -t "${pkgdir}"/${_license/-dkms/${_kernelname}} ${_license}/*
+    fi
+    _modprobe="/usr/lib/modprobe.d/${_module}-dkms.conf"
+    if [[ -r ${_modprobe} ]]; then
+        install -Dm644 ${_modprobe} "${pkgdir}"/${_modprobe/-dkms/${_kernelname}}
+    fi
+}



More information about the arch-commits mailing list