blob: d889410b48f58dfb80fa0ce98293e978e702798a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-firmware
pkgver=20171121
pkgrel=0
pkgdesc="firmware files for linux"
#url="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=summary"
url="http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
arch="all"
license="custom:multiple"
depends=
makedepends=
install=""
subpackages=
replaces="linux-grsec linux-vserver"
options="!strip !check"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${pkgver}.tar.gz
https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.txt
https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.bin
LICENSE.brcmfmac43430::https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/master/brcm80211/LICENSE
"
_giturl="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
_upload=dev.alpinelinux.org:/archive/$pkgname/
_builddir="$srcdir"/$pkgname-$pkgver
snapshot() {
local _date=$(date +%Y%m%d)
local _pkg=$pkgname-$_date.tar.gz
mkdir -p "$srcdir"
cd "$srcdir"
rm -rf "$pkgname"
git clone --depth=1 --bare $_giturl
git --git-dir ${_giturl##*/} archive -o $_pkg \
--prefix=$pkgname-$_date/ HEAD
msg "New snapshot: $_pkg"
if [ -n "$_upload" ]; then
msg "Uploading to $_upload"
scp $_pkg $_upload && abump $pkgname-$_date
fi
}
prepare() {
return 0
}
build() {
return 0
}
package() {
cd "${_builddir}"
make DESTDIR="${pkgdir}" FIRMWAREDIR="/lib/firmware" install
for i in brcmfmac43430-sdio.txt brcmfmac43430-sdio.bin LICENSE.brcmfmac43430; do
install -Dm 644 "$srcdir/$i" "$pkgdir/lib/firmware/brcm/$i"
done
rm -f "${pkgdir}/usr/lib/firmware/{Makefile,README,configure,GPL-3}"
}
sha512sums="0ac34aa64b6c812c34fe35863e3cf92a496b8bd016d0bb283c89fc06d944669b0f712d1a3ffa2ae42efd31d2bc758b57ff2d0c2a5a76ec3b3d21ceea0de2c392 linux-firmware-20171121.tar.gz
bd6417ada7dbb940e75f43d85d9778f362f6c2801b27b4e13043eebfb5f38da4e728bdfe7240304d0ad172ba8ac1a3eff4df40119317093ea19ae23333819024 brcmfmac43430-sdio.txt
6751470a48e0225731d91ab33464eaeac86da3e10dcf63a85ae0aeea6fa114ab01567fda08604e500c54bb14d38578f6c0b135c7772597d07b5ebda1e662b935 brcmfmac43430-sdio.bin
345a081c0df701028f7177856881cdba0a4111d11f3b828397fc92a69e87a427d923cf8b8ff5075e3118d94e73726c0a4220c01658b844e8ae1f84b3a74eeba9 LICENSE.brcmfmac43430"
|