aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-firmware/APKBUILD
blob: 28c32b0e7d8cb6db853abebaadf6f91a426ccf83 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linux-firmware
pkgver=20120402
pkgrel=0
pkgdesc="firmware files for linux"
url="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=summary"
arch="noarch"
license="GPL"
depends=
makedepends=
install=""
subpackages=
source="http://dev.alpinelinux.org/~ncopa/linux-firmware/linux-firmware-${pkgver}.tar.bz2"
_giturl="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
_upload=dev.alpinelinux.org:public_html/linux-firmware/
replaces="linux-grsec linux-vserver"

_builddir="${srcdir}/${pkgname}"
snapshot() {
	local _date=$(date +%Y%m%d)
	local _pkg=$pkgname-$_date.tar.bz2
	cd "$srcdir"
	rm -rf "$pkgname"
	git clone --depth=1 $_giturl
	tar --exclude .git -cjf $_pkg $pkgname
	msg "New snapshot: $_pkg"
	if [ -n "$_upload" ]; then
		msg "Uploading to $_upload"
		scp $_pkg $_upload || return 1
		abump $pkgname-$_date
	fi
}

prepare() {
	return 0
}

build() {
	return 0
}

package() {
	mkdir -p ${pkgdir}/lib
	mv "${_builddir}" ${pkgdir}/lib/firmware
}

md5sums="1e78386f651bf467ac42caa775ec3c56  linux-firmware-20120402.tar.bz2"