Name mkinitcpio-nfs-utils
Description ipconfig and nfsmount tools for NFS root support in mkinitcpio
Version 0.3-8
Package Base mkinitcpio-nfs-utils
Homepage http://www.archlinux.org/
Maintainers ['Jelle van der Waa <jelle@archlinux.org>', 'Thomas Bächler <thomas@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/mkinitcpio-nfs-utils
Sources ['https://sources.archlinux.org/other/mkinitcpio/mkinitcpio-nfs-utils-0.3.tar.xz', 'initcpio-hook-net', 'initcpio-install-net', 'nfsmount-fix-wrong-umount-path.patch']
Dependencies ['glibc']
Optional-Dependencies []
Build-Dependencies []
Provides []
Builddate 20-05-2023 13:56:07
Architecture x86_64
Distro-Version
Licenses ['GPL2']
Hash 5f47497df41e8ba6383af3cc96bb4daf41b48cb17836c4f4312351787d538f3f
# Maintainer: Thomas Bächler <thomas@archlinux.org>

pkgname=mkinitcpio-nfs-utils
pkgver=0.3
pkgrel=8
pkgdesc="ipconfig and nfsmount tools for NFS root support in mkinitcpio"
arch=('x86_64')
url="http://www.archlinux.org/"
license=('GPL2')
depends=('glibc')
source=("https://sources.archlinux.org/other/mkinitcpio/$pkgname-$pkgver.tar.xz"
        'nfsmount-fix-wrong-umount-path.patch'
        'initcpio-install-net'
        'initcpio-hook-net')
sha256sums=('d290d489844fae100ca7b848b8eef40078124ff373203086bacc07329d1e8939'
            '6edb239f3d541b8ddee816e2d18bfb3ee1d3f5f8827769674cc8bf2a7ce38f21'
            'ce9f021763c020b9b62a761974437fd1e9e894df3effc58e71671bf83b061255'
            '29a5a4a9ebd61bfa1afbb8dcaf2187e487ee1f34b1979a85a853fa2acbeb510e')

build() {
  cd "$pkgname-$pkgver"

  # upstream commit 029622dfbfe25203275a385a5bf33d44c2409b00
  patch -Np1 < "$srcdir/nfsmount-fix-wrong-umount-path.patch"

  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install

  # override hooks, they need updates
  install -m644 "$srcdir/initcpio-install-net" "$pkgdir/usr/lib/initcpio/install/net"
  install -m644 "$srcdir/initcpio-hook-net" "$pkgdir/usr/lib/initcpio/hooks/net"
}