summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre-lts/PKGBUILD
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-04-15 18:31:32 -0700
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-04-15 18:31:32 -0700
commitffb3ebbe0c98853f03a79b95cfff0f525df7d1fe (patch)
tree9879cb74f4d2f8ab4652b4277b7f66c212766ab0 /libre/kernel26-libre-lts/PKGBUILD
parent833e63b6728e7fe38ea0e77303623efa6bdef48c (diff)
parentc931fbbe5ae1246b69e2c61452f7c3d7632d98c9 (diff)
Merge branch 'master' of vparabola:~/projects/abslibre
Conflicts: .gitignore
Diffstat (limited to 'libre/kernel26-libre-lts/PKGBUILD')
-rw-r--r--libre/kernel26-libre-lts/PKGBUILD27
1 files changed, 19 insertions, 8 deletions
diff --git a/libre/kernel26-libre-lts/PKGBUILD b/libre/kernel26-libre-lts/PKGBUILD
index 1703e2073..a253ae483 100644
--- a/libre/kernel26-libre-lts/PKGBUILD
+++ b/libre/kernel26-libre-lts/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=('kernel26-libre-lts' 'kernel26-libre-lts-headers') # Build stock -lts k
_kernelname=${pkgname#kernel26-libre}
_basekernel=2.6.32
_preset=kernel26-lts.preset
-pkgver=${_basekernel}.33
+pkgver=${_basekernel}.36
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL2')
@@ -19,12 +19,7 @@ source=(http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/${pkg
# standard config files for mkinitcpio ramdisk
${_preset}
${pkgname}.install)
-md5sums=('ad33db040de641a00c60726531192413'
- '30851deee235a7486bd408cbe8eb2d71'
- '8061d2986b33c052153edebaee435b8f'
- 'aa1feef81f058ab623ef5aeac40af00d'
- '2cbfeb3e2a18d45f82f613e97fc23355'
- 'fbfc7a1af3208c7b729055d91e1c149a')
+options=(!strip)
build() {
cd ${srcdir}/linux-$pkgver
@@ -220,8 +215,24 @@ package_kernel26-libre-lts-headers() {
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
-
+ # strip scripts directory
+ find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
+ case "$(file -bi "$binary")" in
+ *application/x-sharedlib*) # Libraries (.so)
+ /usr/bin/strip $STRIP_SHARED "$binary";;
+ *application/x-archive*) # Libraries (.a)
+ /usr/bin/strip $STRIP_STATIC "$binary";;
+ *application/x-executable*) # Binaries
+ /usr/bin/strip $STRIP_BINARIES "$binary";;
+ esac
+ done
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
}
+md5sums=('44f553d98efbab305ec490334560b097'
+ '30851deee235a7486bd408cbe8eb2d71'
+ 'c0bd6a068a32636e52bf4d887bb2b722'
+ 'a5a3af2b95f9a8b3c43d1a74fa5fd82c'
+ '2cbfeb3e2a18d45f82f613e97fc23355'
+ 'fbfc7a1af3208c7b729055d91e1c149a')