Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/pcmciautils/PKGBUILD35
-rw-r--r--core/pcmciautils/initcpio-install-pcmcia22
2 files changed, 57 insertions, 0 deletions
diff --git a/core/pcmciautils/PKGBUILD b/core/pcmciautils/PKGBUILD
new file mode 100644
index 00000000..d16f9a7d
--- /dev/null
+++ b/core/pcmciautils/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
+# Contributor: Tom Gundersen <teg@jklm.no>
+# Contributor: Tobias Powalowski <tpowa@archlinux.org>
+pkgname=pcmciautils
+pkgver=018
+pkgrel=8
+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=('systemd')
+conflicts=('pcmcia-cs')
+source=(https://kernel.org/pub/linux/utils/kernel/pcmcia/${pkgname}-${pkgver}.tar.{xz,sign}
+ initcpio-install-pcmcia)
+options=(!makeflags)
+sha512sums=('69a01cb4d6cefc4bcb31309fafbd76f937dd0599fbd097a5f22d76d3bc4eeddfccd16bddf42d8e079b323bd8eb62f4b0b25e1da3755664bd01cb2ccbf939c7cf'
+ 'SKIP'
+ '8e486c7432264bdce6698c3831f89b1473400b99dc5aad70df70b2b01cd4219066595fe3f7bc062c56cc2487ad9d65bb6d27d843e20ebfb03e5479f69a9d5299')
+validpgpkeys=('DD46DC35691C79509D15F58CFEF39108F6FD2C20')
+
+build() {
+ cd "$pkgname-$pkgver"
+ sed -i -e 's,/lib/udev,/usr/lib/udev,g' Makefile
+ sed -i -e 's,/sbin,/usr/bin,g' Makefile
+ make
+}
+
+package() {
+ make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+
+ # install the mkinitpcio hook
+ install -Dm644 initcpio-install-pcmcia "$pkgdir/usr/lib/initcpio/install/pcmcia"
+}
diff --git a/core/pcmciautils/initcpio-install-pcmcia b/core/pcmciautils/initcpio-install-pcmcia
new file mode 100644
index 00000000..af89c4c9
--- /dev/null
+++ b/core/pcmciautils/initcpio-install-pcmcia
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+build() {
+ if add_checked_modules -f 'sound|net' '/drivers/pcmcia/'; then
+ add_module 'sd_mod?'
+ fi
+
+ add_binary "/usr/lib/udev/pcmcia-socket-startup"
+ add_binary "/usr/lib/udev/pcmcia-check-broken-cis"
+ add_file "/usr/lib/udev/rules.d/60-pcmcia.rules"
+ add_file "/etc/pcmcia/config.opts"
+}
+
+help() {
+ cat <<HELPEOF
+This hook loads the necessary modules for a pcmcia root device. Detection will
+take place at runtime. To minimize the modules in the image, add the autodetect
+hook too.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: