# Template file for 'radeon-firmware'
pkgname=radeon-firmware
version=1.0
revision=1
wrksrc=$pkgname
distfiles="
http://people.freedesktop.org/~agd5f/radeon_ucode/R600_rlc.bin
http://people.freedesktop.org/~agd5f/radeon_ucode/R700_rlc.bin
http://people.freedesktop.org/~agd5f/radeon_ucode/LICENSE.radeon"
build_style=custom-install
short_desc="Firmware for ATI Radeon video cards"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum="
fafa54e2e28cfffe014163f88bde5039becf921f63b2e51cd82f32df77bc7d85
eacd95219f0eac701bb75c3142906fd7fef78cc2e0816fc2fb51460c17cd6fd1
8baa4614a7da6b136cf000af09e92f558849be70d4b81f0ea54d9978db9c721e"
long_desc="
 This package contains some binary firmware files required by the
 radeon KMS driver for Linux."

noextract=yes
noarch=yes

do_install()
{
	install -d ${DESTDIR}/lib/firmware/radeon

	for f in ${distfiles}; do
		lfile=$(basename ${f})
		install -m644 ${XBPS_SRCDISTDIR}/${lfile} \
			${DESTDIR}/lib/firmware/radeon || return 1
	done
}
