linux-firmware: fetch src from git repo dynamically.
This commit is contained in:
parent
2d719a860a
commit
d1ff50058f
1 changed files with 12 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Template file for 'linux-firmware'
|
# Template file for 'linux-firmware'
|
||||||
pkgname=linux-firmware
|
pkgname=linux-firmware
|
||||||
version=20110608
|
version="$(date +%Y%m%d)"
|
||||||
distfiles=http://xbps.nopcode.org/distfiles/$pkgname-$version.tar.xz
|
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
build_wrksrc=$pkgname
|
||||||
short_desc="Binary firmware blobs for the Linux kernel"
|
short_desc="Binary firmware blobs for the Linux kernel"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.kernel.org/"
|
homepage="http://www.kernel.org/"
|
||||||
|
@ -13,18 +13,25 @@ long_desc="
|
||||||
the Linux kernel."
|
the Linux kernel."
|
||||||
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
nofetch=yes
|
||||||
|
noextract=yes
|
||||||
|
|
||||||
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
|
replaces="kernel-firmware>=0 radeon-firmware>=0 iwl1000-firmware>=0
|
||||||
iwl3945-firmware>=0 iwl4965-firmware>=0 iwl5000-firmware>=0 rt73usb-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
|
iwl5150-firmware>=0 iwl6000-firmware>=0 rt2800usb>=0 rt61-firmware>=0
|
||||||
ar9170-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()
|
do_install()
|
||||||
{
|
{
|
||||||
cd ${wrksrc}
|
|
||||||
|
|
||||||
install -d ${DESTDIR}/lib/firmware
|
install -d ${DESTDIR}/lib/firmware
|
||||||
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
|
install -d ${DESTDIR}/usr/share/licenses/${pkgname}
|
||||||
cp -a * ${DESTDIR}/lib/firmware
|
cp -a * ${DESTDIR}/lib/firmware
|
||||||
|
|
Loading…
Reference in a new issue