[arch-commits] Commit in pcmciautils/repos (3 files)

Felix Yan felixonmars at archlinux.org
Mon Jun 4 14:27:06 UTC 2018


    Date: Monday, June 4, 2018 @ 14:27:05
  Author: felixonmars
Revision: 325849

archrelease: copy trunk to extra-x86_64

Added:
  pcmciautils/repos/extra-x86_64/
  pcmciautils/repos/extra-x86_64/PKGBUILD
    (from rev 325848, pcmciautils/trunk/PKGBUILD)
  pcmciautils/repos/extra-x86_64/initcpio-install-pcmcia
    (from rev 325848, pcmciautils/trunk/initcpio-install-pcmcia)

-------------------------+
 PKGBUILD                |   33 +++++++++++++++++++++++++++++++++
 initcpio-install-pcmcia |   22 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: pcmciautils/repos/extra-x86_64/PKGBUILD (from rev 325848, pcmciautils/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2018-06-04 14:27:05 UTC (rev 325849)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Tom Gundersen <teg at jklm.no>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+pkgname=pcmciautils
+pkgver=018
+pkgrel=8
+pkgdesc="Utilities for inserting and removing PCMCIA cards"
+arch=('x86_64')
+url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
+license=('GPL')
+groups=('base')
+depends=('systemd')
+conflicts=('pcmcia-cs')
+# source=(http://kernel.org/pub/linux/utils/kernel/pcmcia/${pkgname}-${pkgver}.tar.bz2) broken due to breakin
+source=(https://sources.archlinux.org/other/$pkgname/$pkgname-$pkgver.tar.xz
+        initcpio-install-pcmcia)
+options=(!makeflags)
+
+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"
+}
+sha512sums=('c7c1ecde41a60d3d1fcb12e3be309f8287d0242ad93e17b1286bf2818a0de1f415c89f63fec0571264e5ff87e99ba7ded905e6b671c2f6795ea910a0045261f5'
+            '8e486c7432264bdce6698c3831f89b1473400b99dc5aad70df70b2b01cd4219066595fe3f7bc062c56cc2487ad9d65bb6d27d843e20ebfb03e5479f69a9d5299')

Copied: pcmciautils/repos/extra-x86_64/initcpio-install-pcmcia (from rev 325848, pcmciautils/trunk/initcpio-install-pcmcia)
===================================================================
--- extra-x86_64/initcpio-install-pcmcia	                        (rev 0)
+++ extra-x86_64/initcpio-install-pcmcia	2018-06-04 14:27:05 UTC (rev 325849)
@@ -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:



More information about the arch-commits mailing list