summaryrefslogtreecommitdiff
path: root/core/pcmciautils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/pcmciautils/PKGBUILD')
-rw-r--r--core/pcmciautils/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/core/pcmciautils/PKGBUILD b/core/pcmciautils/PKGBUILD
new file mode 100644
index 000000000..8744b8392
--- /dev/null
+++ b/core/pcmciautils/PKGBUILD
@@ -0,0 +1,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/
+}