summaryrefslogtreecommitdiff
path: root/core/pcmciautils/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-07 00:01:17 +0000
committerroot <root@rshg054.dnsready.net>2012-04-07 00:01:17 +0000
commit3d65494a8eda056377febda4642ce992e69a9371 (patch)
treedae57e04ca5f7d7490acbde87206eaa62695109d /core/pcmciautils/PKGBUILD
parentd9c1fc1bcca8fd5cd3566fc6b183fe23065778bc (diff)
Sat Apr 7 00:01:16 UTC 2012
Diffstat (limited to 'core/pcmciautils/PKGBUILD')
-rw-r--r--core/pcmciautils/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/core/pcmciautils/PKGBUILD b/core/pcmciautils/PKGBUILD
index 59959a831..fcc599665 100644
--- a/core/pcmciautils/PKGBUILD
+++ b/core/pcmciautils/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 153635 2012-03-16 22:34:37Z tomegun $
+# $Id: PKGBUILD 155725 2012-04-06 00:03:55Z tomegun $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pcmciautils
pkgver=018
-pkgrel=2
+pkgrel=4
pkgdesc="Utilities for inserting and removing PCMCIA cards"
arch=(i686 x86_64)
url="http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
@@ -13,17 +13,23 @@ groups=('base')
depends=('udev' 'sysfsutils')
conflicts=('pcmcia-cs')
# source=(http://kernel.org/pub/linux/utils/kernel/pcmcia/${pkgname}-${pkgver}.tar.bz2) broken due to breakin
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz
+ initcpio-install-pcmcia)
options=(!makeflags)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- sed -i -e 's,/usr/bin/install,/bin/install,g' Makefile
+ sed -i -e 's,/usr/bin/install,install,g;
+ s,/lib/udev,/usr/lib/udev,g' Makefile
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
+
+ # install the mkinitpcio hook
+ install -D -m644 ../initcpio-install-pcmcia ${pkgdir}/usr/lib/initcpio/install/pcmcia
}
-md5sums=('964c802994677a71b38ec56554aa229f')
+md5sums=('964c802994677a71b38ec56554aa229f'
+ '2659576a4637c58c4e79a96f8e43e316')