# Template file for 'rt61-firmware'
pkgname=rt61-firmware
version=1.2
_distname=RT61_Firmware
wrksrc=${_distname}_V${version}
distfiles="ftp://ftp.slackware.at/slackware-current/source/n/${pkgname}/${_distname}_V${version}.zip"
build_style=custom-install
short_desc="Firmware for Ralink® RT2561/RT2661 A/B/G network adaptors"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=481f113c505ed186049287bd8e9ad8fcb8dbbb32f3bb718f04e4dc148b63c8e4
long_desc="
 This package contains the firmware required by the rt61pci driver for Linux.
 Usage of the firmware is subject to the terms and conditions contained
 inside the provided LICENSE.ralink-firmware.txt file.
 Please read it carefully."

noarch=yes
Add_dependency build unzip

do_install()
{
	install -d ${DESTDIR}/lib/firmware ${DESTDIR}/usr/share/doc/${pkgname}
	install -m644 ${wrksrc}/rt2* ${DESTDIR}/lib/firmware
	install -m644 ${wrksrc}/LICENSE* ${DESTDIR}/usr/share/doc/${pkgname}
}
