aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-firmware/APKBUILD
blob: 0a9bb4976543ff7cee8649bfaed97c79da8a1f1d (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-firmware
pkgver=20151021
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="noarch"
license="GPL"
depends=
makedepends=
install=""
subpackages=
replaces="linux-grsec linux-vserver"

source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${pkgver}.tar.gz"
_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 || return 1
	git --git-dir ${_giturl##*/} archive -o $_pkg \
		--prefix=$pkgname-$_date/ HEAD \
		|| return 1
	msg "New snapshot: $_pkg"
	if [ -n "$_upload" ]; then
		msg "Uploading to $_upload"
		scp $_pkg $_upload && abump $pkgname-$_date || return 1
	fi
}

prepare() {
	return 0
}

build() {
	return 0
}

package() {
	cd "${_builddir}"
	make DESTDIR="${pkgdir}" FIRMWAREDIR="/lib/firmware" install || return 1
	rm -f "${pkgdir}/usr/lib/firmware/{Makefile,README,configure,GPL-3}"
}

md5sums="2960b7241de622362f1ef93592ab16d4  linux-firmware-20151021.tar.gz"
sha256sums="3f7f3a3bbe3fac608ec2ec996d2b11fa3e7cbb55f57334c11fb041169e681851  linux-firmware-20151021.tar.gz"
sha512sums="f5639dc5fb30f0da4544e8fe42fee532cbd856bb5d08c34c400a11ec115abdb5b3e607b0fc69c8b6f165fca8b676fe63d61ea9b15acebb21f5a41c932e99a7e0  linux-firmware-20151021.tar.gz"