summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre-lts/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-13 19:52:16 +0000
committerroot <root@rshg047.dnsready.net>2011-04-13 19:52:16 +0000
commit9c49791f6e912bd4834f00f2c6b3a00e6c12bb73 (patch)
tree271461a0ae2a048d21d2f8fbd0519a659cfc6aca /libre/kernel26-libre-lts/PKGBUILD
parent6dab5c46b00f624c7900ff6d11b75bcafbe251d0 (diff)
Wed Apr 13 19:52:16 UTC 2011
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')