summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3e5cb484184..c6cd9cd26e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}