From 9116876b712f85cfb2b31feb612a209cd766e947 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 30 Mar 2013 14:07:32 -0300 Subject: rebuilding packages against Linux-libre 3.8.5 --- libre/cdfs-libre/PKGBUILD | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'libre/cdfs-libre') diff --git a/libre/cdfs-libre/PKGBUILD b/libre/cdfs-libre/PKGBUILD index 290eff882..c519fb4a1 100644 --- a/libre/cdfs-libre/PKGBUILD +++ b/libre/cdfs-libre/PKGBUILD @@ -6,15 +6,17 @@ _pkgname=cdfs pkgname=cdfs-libre pkgver=2.6.27 -pkgrel=38 +_extramodules=extramodules-3.8-LIBRE # Don't forget to update cdfs.install +pkgrel=39 pkgdesc="File system module that 'exports' all tracks and boot images on a CD as normal files (built for the linux-libre kernel package)" arch=(i686 x86_64 mips64el) url="http://www.elis.UGent.be/~ronsse/cdfs/" license=('GPL') +depends=('linux-libre>=3.8' 'linux-libre<3.9') makedepends=('linux-libre-headers') -replaces=('cdfs') -conflicts=('cdfs') -provides=("cdfs=${pkgver}") +replaces=$_pkgname +conflicts=$_pkgname +provides=$_pkgname=$pkgver install=cdfs.install source=("http://www.elis.UGent.be/~ronsse/cdfs/download/$_pkgname-$pkgver.tar.bz2" "cdfs-3.0.patch" @@ -27,22 +29,19 @@ md5sums=('ac64c014a90e3c488394832ea29605b3' '9215e7bdac728bd2f889fb525e543454' 'b036fd72b033294605bec2b60a73e3bd') -_kernver=`pacman -Q linux-libre | cut -d . -f 2 | cut -f 1 -d -` -_kernverfull=`cat /usr/lib/modules/extramodules-3.${_kernver}-LIBRE/version` - build() { + _kernver="$(cat /usr/lib/modules/${_extramodules}/version)" + cd $srcdir/$_pkgname-$pkgver patch -p1 <$srcdir/cdfs-3.0.patch patch -p1 <$srcdir/cdfs-3.2.patch patch -p1 <$srcdir/cdfs-3.4.patch patch -p1 <$srcdir/cdfs-3.8.patch - make KDIR=/usr/lib/modules/${_kernverfull}/build - sed -i "s|extramodules-.*-LIBRE|extramodules-3.${_kernver}-LIBRE|" $startdir/cdfs.install + make KDIR=/usr/lib/modules/${_kernver}/build + sed -i "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extramodules'/" $startdir/cdfs.install } package() { - depends=("linux-libre>=3.${_kernver}" "linux-libre<3.`expr ${_kernver} + 1`") - cd $srcdir/$_pkgname-$pkgver - install -Dm0644 cdfs.ko $pkgdir/usr/lib/modules/extramodules-3.${_kernver}-LIBRE/cdfs.ko + install -Dm0644 cdfs.ko $pkgdir/usr/lib/modules/$_extramodules/cdfs.ko } -- cgit v1.2.3