summaryrefslogtreecommitdiffstats
path: root/abs/core/ipw3945d/PKGBUILD
blob: 5a9351b8c9f77f26cc5b0d7af92034c9c3ab42de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: James Rayner <iphitus@gmail.com>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>

pkgname=ipw3945d
pkgver=1.7.22
pkgrel=5
pkgdesc="Regulatory daemon for IPW3945"
arch=('i686' 'x86_64')
url="http://www.bughost.org/ipw3945"
license=('custom')
depends=('glibc')
install=ipw3945d.install
source=(http://www.bughost.org/ipw3945/daemon/${pkgname}-${pkgver}.tgz ipw3945d.rc)

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  #Install daemon w/ Arch specific fix
  if [ "$CARCH" = "x86_64" ]; then
  install -D -m 755 x86_64/ipw3945d ${pkgdir}/sbin/ipw3945d
  else install -D -m 755 x86/ipw3945d ${pkgdir}/sbin/ipw3945d
  fi
  # Install license
  install -D -m 644 LICENSE.ipw3945d ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
  install -m755 -D ${srcdir}/ipw3945d.rc ${pkgdir}/etc/rc.d/ipw3945d || return 
}
md5sums=('097888f5be05eb2b9b87dcdbeeb948ce'
         '72aafd7cba214592de6175974a48b4f9')