# Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=linux-firmware pkgver=20170711 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="GPL" depends= makedepends= install="" subpackages= replaces="linux-grsec linux-vserver" options="!strip" 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}" } sha512sums="40bc5c366db4b5bcd98876b10354017f872d45620e6a790783592b3b5f1db96888cf35143ebe9a2acedacc104d5d56384a82a8f2b4a5fee4da0cf18d938180cd linux-firmware-20170711.tar.gz"