summaryrefslogtreecommitdiff
path: root/core/pcmciautils/PKGBUILD
blob: 8744b839288a5990c62972d5433a909a50933ed4 (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
32
# $Id: PKGBUILD 113400 2011-03-08 14:24:47Z stephane $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pcmciautils
pkgver=017
pkgrel=2
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
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  # 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/
}