diff options
Diffstat (limited to 'abs/core/pcmciautils/PKGBUILD')
-rw-r--r-- | abs/core/pcmciautils/PKGBUILD | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/abs/core/pcmciautils/PKGBUILD b/abs/core/pcmciautils/PKGBUILD index 40a4a6b..fcc5996 100644 --- a/abs/core/pcmciautils/PKGBUILD +++ b/abs/core/pcmciautils/PKGBUILD @@ -1,31 +1,35 @@ -# $Id: PKGBUILD 82630 2010-06-15 04:26:01Z allan $ -# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +# $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=017 -pkgrel=1 +pkgver=018 +pkgrel=4 pkgdesc="Utilities for inserting and removing PCMCIA cards" -arch=('i686' 'x86_64') +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') +# sysfsutils will not be required in the next release +depends=('udev' 'sysfsutils') conflicts=('pcmcia-cs') -source=(http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-$pkgver.tar.bz2 - 60-pcmcia.rules) +# 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 + initcpio-install-pcmcia) options=(!makeflags) -md5sums=('5245af28eeba57ec0606a874d44d10f7' - 'f88ac464ab9c75fe1565af551e6553a2') build() { - cd $srcdir/$pkgname-$pkgver - sed -i -e 's,/usr/bin/install,/bin/install,g' Makefile - make || return 1 + cd "${srcdir}/${pkgname}-${pkgver}" + 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 || return 1 - # 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/ + 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' + '2659576a4637c58c4e79a96f8e43e316') |