summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 18 insertions, 23 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 19c8ceb9d85..dafb174403a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,51 +1,46 @@
-# Maintainer: Stefan Schmidt <thrimbor.github@gmail.com>
-# Previous Maintainer: camb <cyrilbur@gmail.com>
# Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
# Contributor: toha257 <toha257@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Tavian Barnes <tavianator@tavianator.com>
-# This PKGBUILD was heavily inspired from the
-# arm-linux-gnueabihf-linux-api-headers PKGBUILD
+# Maintainer: Stefan Schmidt <thrimbor.github@gmail.com>
_target_arch=powerpc
_target=${_target_arch}-linux-gnu
pkgname=${_target}-linux-api-headers
-_basever=4.5
-pkgver=${_basever}.5
+pkgver=4.16.1
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace (${_target})"
-arch=('any')
-url="http://www.gnu.org/software/libc"
-license=('GPL2')
-source=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-${_basever}.tar.xz
- http://www.kernel.org/pub/linux/kernel/v4.x/linux-${_basever}.tar.sign
- http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz
- http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.sign)
-md5sums=('a60d48eee08ec0536d5efb17ca819aef'
+arch=(any)
+url='http://www.gnu.org/software/libc'
+license=(GPL2)
+source=(https://www.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver%.*}.tar.{xz,sign}
+ https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.{xz,sign})
+md5sums=('1357fb4ee7c288fdeac5d4e0048f5c18'
'SKIP'
- 'fe89010925304f6f07713741f0c8e811'
+ 'bade764e616e8283b6a620f268337651'
'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
prepare() {
- cd ${srcdir}/linux-${_basever}
- [[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver} || true
+ cd linux-${pkgver%.*}
+ patch -p1 -i "$srcdir/patch-$pkgver"
}
build() {
- cd ${srcdir}/linux-${_basever}
+ cd linux-${pkgver%.*}
- make ARCH=${_target_arch} mrproper
- make ARCH=${_target_arch} headers_check
+ make ARCH=$_target_arch mrproper
+ make ARCH=$_target_arch headers_check
}
package() {
- cd ${srcdir}/linux-${_basever}
- make INSTALL_HDR_PATH=${pkgdir}/usr/${_target} ARCH=${_target_arch} headers_install
+ cd linux-${pkgver%.*}
+ make INSTALL_HDR_PATH="$pkgdir/usr/$_target" ARCH=$_target_arch headers_install
# use headers from libdrm
- rm -rf ${pkgdir}/usr/${_target}/include/drm
+ rm -rf "$pkgdir/usr/$_target/include/drm"
# clean-up unnecessary files generated during install
find ${pkgdir} \( -name .install -o -name ..install.cmd \) -delete