summaryrefslogtreecommitdiffstats
path: root/abs/core/pcmciautils/PKGBUILD
blob: 40a4a6b3141055fb40c5c8b0e92965aba2686585 (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
29
30
31
# $Id: PKGBUILD 82630 2010-06-15 04:26:01Z allan $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pcmciautils
pkgver=017
pkgrel=1
pkgdesc="Utilities for inserting and removing PCMCIA cards"
arch=('i686' 'x86_64')
url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
license=('GPL')
groups=('base')
depends=('glibc' 'sysfsutils' 'module-init-tools>=3.2pre9')
conflicts=('pcmcia-cs')
source=(http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-$pkgver.tar.bz2 
	60-pcmcia.rules)
options=(!makeflags)
md5sums=('5245af28eeba57ec0606a874d44d10f7'
         'f88ac464ab9c75fe1565af551e6553a2')

build() {
  cd $srcdir/$pkgname-$pkgver
  sed -i -e 's,/usr/bin/install,/bin/install,g' Makefile
  make || return 1
}
package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install || return 1
  # fix lspcmcia symlink
  ln -sf pccardctl $pkgdir/sbin/lspcmcia
  # add fixed rules file
  install -D -m644 $srcdir/60-pcmcia.rules $pkgdir/lib/udev/rules.d/
}