From 56e09006b8b5b2b27b3333b2fd009a206e3cac9e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 6 Dec 2009 02:31:00 +0100 Subject: [PATCH] Added rt2800usb-firmware-8 build template. --HG-- extra : convert_revision : b6e1d7d32071e922be0af0e2051f572e76ae0345 --- srcpkgs/rt2800usb-firmware/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/rt2800usb-firmware/template diff --git a/srcpkgs/rt2800usb-firmware/template b/srcpkgs/rt2800usb-firmware/template new file mode 100644 index 0000000000..cfbd57361e --- /dev/null +++ b/srcpkgs/rt2800usb-firmware/template @@ -0,0 +1,28 @@ +# Template file for 'rt2800usb-firmware' +pkgname=rt2800usb-firmware +version=8 +_distname=RT2870_Firmware +wrksrc=${_distname}_V${version} +distfiles="ftp://ftp.archlinux.org/other/rt2870usb-fw/${_distname}_V${version}.zip" +build_style=custom-install +short_desc="Firmware for RalinkĀ® T2800 USB network adaptors" +maintainer="Juan RP " +checksum=b2c70b20c880170110cb09af154e680961f83d45f6d1c2118c28806bcbd703b4 +long_desc=" + This package contains the firmware required by the rt2800usb 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 +noextract=yes +Add_dependency build libarchive + +do_install() +{ + bsdtar xf ${XBPS_SRCDISTDIR}/$(basename ${distfiles}) \ + -C ${XBPS_BUILDDIR} || return 1 + install -d ${DESTDIR}/lib/firmware ${DESTDIR}/usr/share/doc/${pkgname} + install -m644 ${wrksrc}/rt* ${DESTDIR}/lib/firmware + install -m644 ${wrksrc}/LICENSE* ${DESTDIR}/usr/share/doc/${pkgname} +}