mirror of
https://aur.archlinux.org/linux-vfio.git
synced 2024-12-26 16:44:09 +00:00
Release: 5.5.5.arch1-2; update pkgbuild and config to match upstream and packaging guidelines
This commit is contained in:
parent
24664c3268
commit
c79c378145
11
.SRCINFO
11
.SRCINFO
@ -1,15 +1,14 @@
|
|||||||
pkgbase = linux-vfio
|
pkgbase = linux-vfio
|
||||||
pkgdesc = Linux
|
pkgdesc = Linux
|
||||||
pkgver = 5.5.5.arch1
|
pkgver = 5.5.5.arch1
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://git.archlinux.org/linux.git/log/?h=v5.5.5-arch1
|
url = https://git.archlinux.org/linux.git/log/?h=v5.5.5-arch1
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL2
|
license = GPL2
|
||||||
makedepends = xmlto
|
|
||||||
makedepends = kmod
|
|
||||||
makedepends = inetutils
|
|
||||||
makedepends = bc
|
makedepends = bc
|
||||||
|
makedepends = kmod
|
||||||
makedepends = libelf
|
makedepends = libelf
|
||||||
|
makedepends = xmlto
|
||||||
makedepends = python-sphinx
|
makedepends = python-sphinx
|
||||||
makedepends = python-sphinx_rtd_theme
|
makedepends = python-sphinx_rtd_theme
|
||||||
makedepends = graphviz
|
makedepends = graphviz
|
||||||
@ -24,7 +23,7 @@ pkgbase = linux-vfio
|
|||||||
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
|
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
|
||||||
validpgpkeys = 8218F88849AAC522E94CF470A5E9288C4FA415FA
|
validpgpkeys = 8218F88849AAC522E94CF470A5E9288C4FA415FA
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = 10ee7800902b1d82f9c184b367c9d904f4dc48f6d9ce3277327e825d7ab690d1
|
sha256sums = d8ec5445fe03cd5e0cb95a8bcbdf4887a1649825b0a68b8ffd62dabe300ecb8f
|
||||||
sha256sums = 31ae60837b90feba277b182a9015e4df6e74fd660aba1a2841f49ecd57617559
|
sha256sums = 31ae60837b90feba277b182a9015e4df6e74fd660aba1a2841f49ecd57617559
|
||||||
sha256sums = 334f3472adc0280614b278ead7375d3a982dc1b9310c1fc62bc8b8e96eb2b6d4
|
sha256sums = 334f3472adc0280614b278ead7375d3a982dc1b9310c1fc62bc8b8e96eb2b6d4
|
||||||
|
|
||||||
@ -40,5 +39,5 @@ pkgname = linux-vfio-headers
|
|||||||
pkgdesc = Headers and scripts for building modules for the Linux kernel
|
pkgdesc = Headers and scripts for building modules for the Linux kernel
|
||||||
|
|
||||||
pkgname = linux-vfio-docs
|
pkgname = linux-vfio-docs
|
||||||
pkgdesc = Kernel hacker's manual for the Linux kernel
|
pkgdesc = Documentation for the Linux kernel
|
||||||
|
|
||||||
|
71
PKGBUILD
71
PKGBUILD
@ -1,16 +1,18 @@
|
|||||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
# Maintainer: Mark Weiman (markzz) <mark.weiman@markzz.com>
|
||||||
|
# Maintainer: Katelyn Schiesser (slowbro) <katelyn.schiesser@gmail.com>
|
||||||
|
# Upstream: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||||
|
|
||||||
pkgbase=linux-vfio
|
pkgbase=linux-vfio
|
||||||
pkgver=5.5.5.arch1
|
pkgver=5.5.5.arch1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Linux'
|
pkgdesc='Linux'
|
||||||
_srctag=v${pkgver%.*}-${pkgver##*.}
|
_srctag=v${pkgver%.*}-${pkgver##*.}
|
||||||
url="https://git.archlinux.org/linux.git/log/?h=$_srctag"
|
url="https://git.archlinux.org/linux.git/log/?h=$_srctag"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
license=(GPL2)
|
license=(GPL2)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
xmlto kmod inetutils bc libelf
|
bc kmod libelf
|
||||||
python-sphinx python-sphinx_rtd_theme graphviz imagemagick
|
xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
|
||||||
git
|
git
|
||||||
)
|
)
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
@ -27,7 +29,7 @@ validpgpkeys=(
|
|||||||
'8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig)
|
'8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig)
|
||||||
)
|
)
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
'10ee7800902b1d82f9c184b367c9d904f4dc48f6d9ce3277327e825d7ab690d1'
|
'd8ec5445fe03cd5e0cb95a8bcbdf4887a1649825b0a68b8ffd62dabe300ecb8f'
|
||||||
'31ae60837b90feba277b182a9015e4df6e74fd660aba1a2841f49ecd57617559'
|
'31ae60837b90feba277b182a9015e4df6e74fd660aba1a2841f49ecd57617559'
|
||||||
'334f3472adc0280614b278ead7375d3a982dc1b9310c1fc62bc8b8e96eb2b6d4'
|
'334f3472adc0280614b278ead7375d3a982dc1b9310c1fc62bc8b8e96eb2b6d4'
|
||||||
)
|
)
|
||||||
@ -40,7 +42,7 @@ export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EP
|
|||||||
prepare() {
|
prepare() {
|
||||||
cd $_srcname
|
cd $_srcname
|
||||||
|
|
||||||
msg2 "Setting version..."
|
echo "Setting version..."
|
||||||
scripts/setlocalversion --save-scmversion
|
scripts/setlocalversion --save-scmversion
|
||||||
echo "-$pkgrel" > localversion.10-pkgrel
|
echo "-$pkgrel" > localversion.10-pkgrel
|
||||||
echo "${pkgbase#linux}" > localversion.20-pkgname
|
echo "${pkgbase#linux}" > localversion.20-pkgname
|
||||||
@ -50,16 +52,16 @@ prepare() {
|
|||||||
src="${src%%::*}"
|
src="${src%%::*}"
|
||||||
src="${src##*/}"
|
src="${src##*/}"
|
||||||
[[ $src = *.patch ]] || continue
|
[[ $src = *.patch ]] || continue
|
||||||
msg2 "Applying patch $src..."
|
echo "Applying patch $src..."
|
||||||
patch -Np1 < "../$src"
|
patch -Np1 < "../$src"
|
||||||
done
|
done
|
||||||
|
|
||||||
msg2 "Setting config..."
|
echo "Setting config..."
|
||||||
cp ../config .config
|
cp ../config .config
|
||||||
make olddefconfig
|
make olddefconfig
|
||||||
|
|
||||||
make -s kernelrelease > version
|
make -s kernelrelease > version
|
||||||
msg2 "Prepared %s version %s" "$pkgbase" "$(<version)"
|
echo "Prepared $pkgbase version $(<version)"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@ -77,7 +79,7 @@ _package() {
|
|||||||
local kernver="$(<version)"
|
local kernver="$(<version)"
|
||||||
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
||||||
|
|
||||||
msg2 "Installing boot image..."
|
echo "Installing boot image..."
|
||||||
# systemd expects to find the kernel here to allow hibernation
|
# systemd expects to find the kernel here to allow hibernation
|
||||||
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
|
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
|
||||||
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
|
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
|
||||||
@ -85,13 +87,13 @@ _package() {
|
|||||||
# Used by mkinitcpio to name the kernel
|
# Used by mkinitcpio to name the kernel
|
||||||
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
|
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
|
||||||
|
|
||||||
msg2 "Installing modules..."
|
echo "Installing modules..."
|
||||||
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
|
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
|
||||||
|
|
||||||
# remove build and source links
|
# remove build and source links
|
||||||
rm "$modulesdir"/{source,build}
|
rm "$modulesdir"/{source,build}
|
||||||
|
|
||||||
msg2 "Fixing permissions..."
|
echo "Fixing permissions..."
|
||||||
chmod -Rc u=rwX,go=rX "$pkgdir"
|
chmod -Rc u=rwX,go=rX "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +103,7 @@ _package-headers() {
|
|||||||
cd $_srcname
|
cd $_srcname
|
||||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
||||||
|
|
||||||
msg2 "Installing build files..."
|
echo "Installing build files..."
|
||||||
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
|
install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \
|
||||||
localversion.* version vmlinux
|
localversion.* version vmlinux
|
||||||
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
install -Dt "$builddir/kernel" -m644 kernel/Makefile
|
||||||
@ -114,7 +116,7 @@ _package-headers() {
|
|||||||
# add xfs and shmem for aufs building
|
# add xfs and shmem for aufs building
|
||||||
mkdir -p "$builddir"/{fs/xfs,mm}
|
mkdir -p "$builddir"/{fs/xfs,mm}
|
||||||
|
|
||||||
msg2 "Installing headers..."
|
echo "Installing headers..."
|
||||||
cp -t "$builddir" -a include
|
cp -t "$builddir" -a include
|
||||||
cp -t "$builddir/arch/x86" -a arch/x86/include
|
cp -t "$builddir/arch/x86" -a arch/x86/include
|
||||||
install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
|
install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s
|
||||||
@ -130,10 +132,10 @@ _package-headers() {
|
|||||||
install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
|
install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h
|
||||||
install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h
|
install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h
|
||||||
|
|
||||||
msg2 "Installing KConfig files..."
|
echo "Installing KConfig files..."
|
||||||
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \;
|
||||||
|
|
||||||
msg2 "Removing unneeded architectures..."
|
echo "Removing unneeded architectures..."
|
||||||
local arch
|
local arch
|
||||||
for arch in "$builddir"/arch/*/; do
|
for arch in "$builddir"/arch/*/; do
|
||||||
[[ $arch = */x86/ ]] && continue
|
[[ $arch = */x86/ ]] && continue
|
||||||
@ -141,16 +143,16 @@ _package-headers() {
|
|||||||
rm -r "$arch"
|
rm -r "$arch"
|
||||||
done
|
done
|
||||||
|
|
||||||
msg2 "Removing documentation..."
|
echo "Removing documentation..."
|
||||||
rm -r "$builddir/Documentation"
|
rm -r "$builddir/Documentation"
|
||||||
|
|
||||||
msg2 "Removing broken symlinks..."
|
echo "Removing broken symlinks..."
|
||||||
find -L "$builddir" -type l -printf 'Removing %P\n' -delete
|
find -L "$builddir" -type l -printf 'Removing %P\n' -delete
|
||||||
|
|
||||||
msg2 "Removing loose objects..."
|
echo "Removing loose objects..."
|
||||||
find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete
|
find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete
|
||||||
|
|
||||||
msg2 "Stripping build tools..."
|
echo "Stripping build tools..."
|
||||||
local file
|
local file
|
||||||
while read -rd '' file; do
|
while read -rd '' file; do
|
||||||
case "$(file -bi "$file")" in
|
case "$(file -bi "$file")" in
|
||||||
@ -165,41 +167,34 @@ _package-headers() {
|
|||||||
esac
|
esac
|
||||||
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
|
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
|
||||||
|
|
||||||
msg2 "Adding symlink..."
|
echo "Adding symlink..."
|
||||||
mkdir -p "$pkgdir/usr/src"
|
mkdir -p "$pkgdir/usr/src"
|
||||||
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
|
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
|
||||||
|
|
||||||
msg2 "Fixing permissions..."
|
echo "Fixing permissions..."
|
||||||
chmod -Rc u=rwX,go=rX "$pkgdir"
|
chmod -Rc u=rwX,go=rX "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
_package-docs() {
|
_package-docs() {
|
||||||
pkgdesc="Kernel hacker's manual for the $pkgdesc kernel"
|
pkgdesc="Documentation for the $pkgdesc kernel"
|
||||||
|
|
||||||
cd $_srcname
|
cd $_srcname
|
||||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
||||||
|
|
||||||
msg2 "Installing documentation..."
|
echo "Installing documentation..."
|
||||||
mkdir -p "$builddir"
|
|
||||||
cp -t "$builddir" -a Documentation
|
|
||||||
|
|
||||||
msg2 "Removing unneeded files..."
|
|
||||||
rm -rv "$builddir"/Documentation/{,output/}.[^.]*
|
|
||||||
|
|
||||||
msg2 "Moving HTML docs..."
|
|
||||||
local src dst
|
local src dst
|
||||||
while read -rd '' src; do
|
while read -rd '' src; do
|
||||||
dst="$builddir/Documentation/${src#$builddir/Documentation/output/}"
|
dst="${src#Documentation/}"
|
||||||
mkdir -p "${dst%/*}"
|
dst="$builddir/Documentation/${dst#output/}"
|
||||||
mv "$src" "$dst"
|
install -Dm644 "$src" "$dst"
|
||||||
rmdir -p --ignore-fail-on-non-empty "${src%/*}"
|
done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
|
||||||
done < <(find "$builddir/Documentation/output" -type f -print0)
|
|
||||||
|
|
||||||
msg2 "Adding symlink..."
|
|
||||||
|
echo "Adding symlink..."
|
||||||
mkdir -p "$pkgdir/usr/share/doc"
|
mkdir -p "$pkgdir/usr/share/doc"
|
||||||
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
|
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
|
||||||
|
|
||||||
msg2 "Fixing permissions..."
|
echo "Fixing permissions..."
|
||||||
chmod -Rc u=rwX,go=rX "$pkgdir"
|
chmod -Rc u=rwX,go=rX "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user