diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-04-13 15:52:15 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-04-13 15:52:15 -0300 |
commit | c699f6b6d25b997978932b92a6f9d63910b867fb (patch) | |
tree | 10aa9894e49e46452a6bae4af27021367ba95684 /libre/kernel26-libre-lts/PKGBUILD | |
parent | 784b813611a39f22cf309a7006c361887c2f4ec4 (diff) |
kernel26-libre-lts-2.6.32.36-1
Diffstat (limited to 'libre/kernel26-libre-lts/PKGBUILD')
-rw-r--r-- | libre/kernel26-libre-lts/PKGBUILD | 27 |
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') |