linux-firmware: fetch src from git repo dynamically.

This commit is contained in:
Juan RP 2011-08-31 12:28:13 +02:00
parent 2d719a860a
commit d1ff50058f
1 changed files with 12 additions and 5 deletions

View File

@ -1,8 +1,8 @@
# Template file for 'linux-firmware'
pkgname=linux-firmware
version=20110608
distfiles=http://xbps.nopcode.org/distfiles/$pkgname-$version.tar.xz
version="$(date +%Y%m%d)"
build_style=custom-install
build_wrksrc=$pkgname
short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/"
@ -13,18 +13,25 @@ long_desc="
the Linux kernel."
noarch=yes
nofetch=yes
noextract=yes
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
iwl3945-firmware>=0 iwl4965-firmware>=0 iwl5000-firmware>=0 rt73usb-firmware>=0
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
ar9170-firmware>=0"
Add_dependency build xz
Add_dependency build git
do_fetch()
{
url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
msg_normal " Fetching source from $url ...\n"
cd ${wrksrc} && git clone $url
}
do_install()
{
cd ${wrksrc}
install -d ${DESTDIR}/lib/firmware
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
cp -a * ${DESTDIR}/lib/firmware