core/pcmciautils/PKGBUILD

35 lines
1.3 KiB
Bash

# $Id: PKGBUILD 57857 2009-11-02 20:46:33Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pcmciautils
pkgver=016
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=('93828a89c22a1d45a46c6dede63632cd'
'f88ac464ab9c75fe1565af551e6553a2')
build() {
cd $srcdir/$pkgname-$pkgver
sed -i -e 's,/usr/bin/install,/bin/install,g' Makefile
make || return 1
make DESTDIR=$pkgdir install || return 1
# fix lspcmcia symlink
ln -sf pccardctl $startdir/pkg/sbin/lspcmcia
# adding static binaries for initrd setup
make clean
sed -i -e 's/STATIC\ =\ false/STATIC\ =\ true/g' Makefile
make || return 1
install -D -m755 pcmcia-check-broken-cis $startdir/pkg/lib/udev/pcmcia-check-broken-cis.static
install -D -m755 pcmcia-socket-startup $startdir/pkg/lib/udev/pcmcia-socket-startup.static
# add fixed rules file
install -D -m644 $startdir/src/60-pcmcia.rules $startdir/pkg/lib/udev/rules.d/
}