aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-firmware/APKBUILD
blob: 14b3a3c5ee77566ac845fe069867a1d6b01e88f2 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-firmware
pkgver=20130506
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() {
	mkdir -p ${pkgdir}/lib
	mv "${_builddir}" ${pkgdir}/lib/firmware
}

md5sums="8703c4be11ad98bdb3c8de0862824f21  linux-firmware-20130506.tar.gz"
sha256sums="b06d93e5cbac02c2fb1e13c6348430927148e2886461002843b5009d0923d728  linux-firmware-20130506.tar.gz"
sha512sums="97fc663c7436c9cf15667cd98236199961868542d17688ad750b938d7625027c4a2307ceb7c0fd3e941589c969dc1c69fe6e05264488d9e7c87420f47766c142  linux-firmware-20130506.tar.gz"