diff options
author | Yurii Kolesnykov | 2019-09-12 08:48:27 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2019-09-12 08:48:27 +0300 |
commit | 32b2a8bf00ceddcfefee403866fe44551a921608 (patch) | |
tree | 4af26c21490705eab5a34699adfeaeb7fa752e82 | |
parent | fb77e81fc80f5b734923b5ccc8313e13be859de7 (diff) | |
download | aur-32b2a8bf00ceddcfefee403866fe44551a921608.tar.gz |
fix pkg
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | 90-linux.hook | 9 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | linux.preset | 33 |
4 files changed, 28 insertions, 73 deletions
@@ -12,7 +12,10 @@ pkgbase = linux-amd-staging-drm-next-git makedepends = libelf makedepends = git makedepends = python-sphinx + makedepends = python-sphinx_rtd_theme makedepends = graphviz + makedepends = imagemagick + makedepends = git options = !strip source = linux-amd-staging-drm-next-git::git://people.freedesktop.org/~agd5f/linux#branch=amd-staging-drm-next source = config @@ -22,8 +25,8 @@ pkgbase = linux-amd-staging-drm-next-git sha256sums = SKIP sha256sums = b8d1fd75825a59312e347674f8a13b799e0535109da6218763c5b21c1e071168 sha256sums = ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21 - sha256sums = ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21 - sha256sums = 997dd1ca5c59e526a35d8367e6371a68406b1a58b90006e6f85d59a580c7503f + sha256sums = 834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0 + sha256sums = ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65 pkgname = linux-amd-staging-drm-next-git pkgdesc = The Linux-amd-staging-drm-next-git kernel and modules @@ -38,6 +41,3 @@ pkgname = linux-amd-staging-drm-next-git pkgname = linux-amd-staging-drm-next-git-headers pkgdesc = Header files and scripts for building modules for Linux-amd-staging-drm-next-git kernel -pkgname = linux-amd-staging-drm-next-git-docs - pkgdesc = Kernel hackers manual - HTML documentation that comes with the Linux-amd-staging-drm-next-git kernel - diff --git a/90-linux.hook b/90-linux.hook index b33873c854fb..9851151995bc 100644 --- a/90-linux.hook +++ b/90-linux.hook @@ -2,11 +2,10 @@ Type = File Operation = Install Operation = Upgrade -Operation = Remove -Target = usr/lib/modules/%KERNVER%/* -Target = usr/lib/modules/%EXTRAMODULES%/* +Target = boot/vmlinuz-%PKGBASE% +Target = usr/lib/initcpio/* [Action] -Description = Updating %PKGBASE% module dependencies... +Description = Updating %PKGBASE% initcpios When = PostTransaction -Exec = /usr/bin/depmod %KERNVER% +Exec = /usr/bin/mkinitcpio -p %PKGBASE% @@ -16,7 +16,10 @@ pkgrel=1 arch=(x86_64) url='https://cgit.freedesktop.org/~agd5f/linux/' license=(GPL2) -makedepends=(xmlto kmod inetutils bc libelf git python-sphinx graphviz) +makedepends=( + xmlto kmod inetutils bc libelf git python-sphinx python-sphinx_rtd_theme + graphviz imagemagick git +) options=('!strip') source=("${pkgbase}::git://people.freedesktop.org/~agd5f/linux#branch=${_branch}" config # the main kernel config file @@ -27,8 +30,8 @@ source=("${pkgbase}::git://people.freedesktop.org/~agd5f/linux#branch=${_branch} sha256sums=('SKIP' 'b8d1fd75825a59312e347674f8a13b799e0535109da6218763c5b21c1e071168' 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' - 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' - '997dd1ca5c59e526a35d8367e6371a68406b1a58b90006e6f85d59a580c7503f') + '834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0' + 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65') pkgver() { cd "${_srcname}" local version="$(grep \^VERSION Makefile|cut -d"=" -f2|cut -d" " -f2)" @@ -68,9 +71,7 @@ prepare() { build() { cd $_srcname -#mainline: disabled for 5.1-rc5 -#make bzImage modules htmldocs - make bzImage modules + make bzImage modules #htmldocs } _package() { @@ -210,43 +211,11 @@ _package-headers() { chmod -Rc u=rwX,go=rX "$pkgdir" } -_package-docs() { - pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel" - - local builddir="$pkgdir/usr/lib/modules/$(<version)/build" - - cd $_srcname - - msg2 "Installing documentation..." - mkdir -p "$builddir" - cp -t "$builddir" -a Documentation - - #mainline: disabled for 5.1-rc5 - - #msg2 "Removing doctrees..." - #rm -r "$builddir/Documentation/output/.doctrees" - - #msg2 "Moving HTML docs..." - #local src dst - #while read -rd '' src; do - #dst="$builddir/Documentation/${src#$builddir/Documentation/output/}" - #mkdir -p "${dst%/*}" - #mv "$src" "$dst" - #rmdir -p --ignore-fail-on-non-empty "${src%/*}" - #done < <(find "$builddir/Documentation/output" -type f -print0) - - msg2 "Adding symlink..." - mkdir -p "$pkgdir/usr/share/doc" - ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" - - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" -} - -pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs") +pkgname=("$pkgbase" "$pkgbase-headers") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") _package${_p#$pkgbase} }" done + diff --git a/linux.preset b/linux.preset index 046277584140..66709a8c1537 100644 --- a/linux.preset +++ b/linux.preset @@ -1,27 +1,14 @@ -post_install () { - # updating module dependencies - echo ">>> Updating module dependencies. Please wait ..." - depmod %KERNVER% -} +# mkinitcpio preset file for the '%PKGBASE%' package -post_upgrade() { - if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then - echo "WARNING: /boot appears to be a separate partition but is not mounted." - fi +ALL_config="/etc/mkinitcpio.conf" +ALL_kver="/boot/vmlinuz-%PKGBASE%" - # updating module dependencies - echo ">>> Updating module dependencies. Please wait ..." - depmod %KERNVER% +PRESETS=('default' 'fallback') - if [ $(vercmp $2 3.13) -lt 0 ]; then - echo ">>> WARNING: AT keyboard support is no longer built into the kernel." - echo ">>> In order to use your keyboard during early init, you MUST" - echo ">>> include the 'keyboard' hook in your mkinitcpio.conf." - fi -} +#default_config="/etc/mkinitcpio.conf" +default_image="/boot/initramfs-%PKGBASE%.img" +#default_options="" -post_remove() { - # also remove the compat symlinks - rm -f boot/initramfs-%PKGBASE%.img - rm -f boot/initramfs-%PKGBASE%-fallback.img -} +#fallback_config="/etc/mkinitcpio.conf" +fallback_image="/boot/initramfs-%PKGBASE%-fallback.img" +fallback_options="-S autodetect" |