Added prebuild() to bash/PKGBUILD
[Archlinux-Stable.git] / support / iwlwifi-4965-ucode / PKGBUILD
blob69ff6fc1d49b2b36eeff80fc31f5bf1703059ec0
1 # $Id: PKGBUILD,v 1.4 2007/11/15 23:53:17 daniel Exp $
2 # Maintainer: Thomas Baechler <thomas@archlinux.org>
4 pkgname=iwlwifi-4965-ucode
5 pkgver=4.44.1.18
6 pkgrel=2
7 pkgdesc="Intel wireless firmware for IPW4965 (iwlwifi driver)"
8 arch=(i686 x86_64)
9 url="http://intellinuxwireless.org/?p=iwlwifi"
10 license=('custom')
11 depends=()
12 source=(http://intellinuxwireless.org/iwlwifi/downloads/$pkgname-4.44.17.tgz
13         http://intellinuxwireless.org/iwlwifi/downloads/$pkgname-$pkgver.tgz)
14 md5sums=('6e5e5287bc9a8021bb35e5905e891638'
15          'dde401d6dd0bcadff1f04828b70d7463')
16 force=y
18 build() {
19   cd $startdir/src/$pkgname-4.44.17
20   # Install old firmware for compatibility
21   install -D -m 644 iwlwifi-4965.ucode $startdir/pkg/lib/firmware/iwlwifi-4965.ucode || return 1
23   cd $startdir/src/$pkgname-$pkgver
24   # Install firmware
25   install -D -m 644 iwlwifi-4965-1.ucode $startdir/pkg/lib/firmware/iwlwifi-4965-1.ucode || return 1
26   # Install license
27   install -D -m 644 LICENSE.iwlwifi-4965-ucode $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1