diff options
author | SebRmv | 2016-07-17 12:04:53 +0200 |
---|---|---|
committer | SebRmv | 2016-07-17 12:04:53 +0200 |
commit | fa619136559adce4692ee060bd6b4ed2b311b249 (patch) | |
tree | 13ac83797de48b55b6eaa3c632cdd744da68eda9 /PKGBUILD | |
parent | b7d20c360b7ac8a9e293c40698f31cae5b7e6af7 (diff) | |
download | aur-binfmt_aout.tar.gz |
Fix installation of package: avoid to break everything...
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: SebRmv pkgname=binfmt_aout pkgver=4.0 -pkgrel=1 +pkgrel=2 pkgdesc='binfmt_aout kernel module, for running an a.out binary format' arch=('i686') makedepends=('linux-headers' 'linux-api-headers' 'gzip') @@ -11,17 +11,19 @@ options=('!strip') source=("https://raw.githubusercontent.com/torvalds/linux/v{$pkgver}/fs/binfmt_aout.c" "Makefile") sha1sums=('461efd1c09b0b2420c1544ba5ec94952ecef4255' - '24969cd0bfe0eba16b15a714839891615001842f') + 'bb9af2aea2fe37ec2e54820762b862d02668bed6') install=binfmt_aout.install +_kernel_version_i686=4.6 + build(){ -cd "$srcdir" + cd "$srcdir" make } package() { cd "$srcdir" - mkdir -p "${pkgdir}"/lib/modules - make install INSTALL_MOD_PATH="${pkgdir}" -# gzip "${pkgdir}/lib/modules/`uname -r`/extra/binfmt_aout.ko" + mkdir -p "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH + install "${pkgname}".ko "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH + gzip "${pkgdir}"/usr/lib/modules/extramodules-"${_kernel_version_i686}"-ARCH/"${pkgname}".ko } |