wok-next diff linux-api-headers/receipt @ rev 19583
Up: cookutils, tazpkg, aufs, kmod, lguest, linux, linux64.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 02 07:42:47 2017 +0200 (2017-01-02) |
parents | e9bd4eca24b2 |
children | 960a052d15d3 |
line diff
1.1 --- a/linux-api-headers/receipt Sat Dec 24 05:45:18 2016 +0200 1.2 +++ b/linux-api-headers/receipt Mon Jan 02 07:42:47 2017 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="linux-api-headers" 1.7 -VERSION="4.9" 1.8 +VERSION="4.9.0" 1.9 KBASEVER="$(echo $VERSION | cut -d. -f1,2)" 1.10 CATEGORY="development" 1.11 SHORT_DESC="Kernel headers sanitized for use in userspace." 1.12 @@ -16,7 +16,7 @@ 1.13 PROVIDE="linux-headers linux64-api-headers linux64-headers" 1.14 BUILD_DEPENDS="bash perl" 1.15 1.16 -if [ "$KBASEVER" != "$VERSION" ]; then 1.17 +if [ "$KBASEVER" != "${VERSION%.0}" ]; then 1.18 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" 1.19 EXTRA_SOURCE_FILES="$(basename $PATCH)" 1.20 fi 1.21 @@ -24,7 +24,7 @@ 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 - if [ "$KBASEVER" != "$VERSION" ]; then 1.26 + if [ "$KBASEVER" != "${VERSION%.0}" ]; then 1.27 [ -s $SRC/$(basename $PATCH) ] || 1.28 wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH) 1.29 xzcat $SRC/$(basename $PATCH) | patch -Np1