community/linux-tools to 4.5-1

This commit is contained in:
Kevin Mihelich 2016-03-16 01:23:43 +00:00
parent 24d4a563a3
commit 997176db9e

View file

@ -16,7 +16,7 @@ pkgname=(
'tmon'
'usbip'
)
pkgver=4.4
pkgver=4.5
pkgrel=1
license=('GPL2')
arch=('i686' 'x86_64')
@ -51,11 +51,14 @@ md5sums=('SKIP'
'a73ea3ea6d9c9ecb1cc910871eead3ff')
prepare() {
local _patch
for _patch in patch-$pkgver.? *.patch; do
[[ -e "$_patch" ]] || continue
msg2 "Applying $_patch"
patch -N -p1 -d linux-$pkgver < "$_patch"
cd linux-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
msg2 "Applying patch $filename"
patch -p1 -N -i "$srcdir/$filename"
fi
done
}