2023-09-19 15:59:53 +08:00
|
|
|
# Maintainer: Jerry Xiao <aur at mail.jerryxiao.cc>
|
|
|
|
# Contributor: Max Gautier <mg+archlinux@max.gautier.name>
|
2023-04-02 11:04:23 +08:00
|
|
|
# Contributor: Artoria Pendragon <saber-nyan@ya.ru>
|
|
|
|
_pkgname=kernel-modules-hook
|
2023-09-19 15:59:53 +08:00
|
|
|
pkgname=${_pkgname}-bindmount
|
2023-09-19 16:04:35 +08:00
|
|
|
pkgver=0.2.4
|
2023-04-02 11:04:23 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Keeps your system fully functional after a kernel upgrade"
|
|
|
|
arch=('any')
|
|
|
|
provides=("$_pkgname")
|
2023-09-19 15:59:53 +08:00
|
|
|
conflicts=("$_pkgname" "${_pkgname}-hardlinks")
|
2023-10-07 14:00:56 +08:00
|
|
|
url="https://github.com/archlinux-jerry/pkgbuilds/tree/master/kernel-modules-hook-bindmount"
|
2023-04-02 11:04:23 +08:00
|
|
|
license=('GPL3')
|
|
|
|
source=("linux-modules-cleanup.conf"
|
|
|
|
"10-linux-modules-pre.hook"
|
2023-04-02 11:05:50 +08:00
|
|
|
"61-linux-modules-post.hook"
|
2023-04-02 11:04:23 +08:00
|
|
|
"linux-modules-restore"
|
|
|
|
"linux-modules-save"
|
|
|
|
)
|
2023-09-19 16:04:35 +08:00
|
|
|
sha256sums=('cfc97c05f0a178574505f2c31b30b2e771546e8223e58a37d9273793faa484b8'
|
2023-09-19 15:59:53 +08:00
|
|
|
'c3f75396f98caf9b13511290e29ce9d1d6827999ca49f0eca6c44a6702fd8d70'
|
2023-04-02 11:05:50 +08:00
|
|
|
'fc4d53dec520c80fe97dfda65b238c7d678e7ef26aaebffc5b43f924477ea4f4'
|
2023-09-19 16:04:35 +08:00
|
|
|
'21883cfc1c282c927353d0246021fd57697ab8d6c2cc1980108772ee03e5ba3d'
|
|
|
|
'97a140062df7b3d1ec5b5c51190dfd8a0a79e65db87aba97a97e886cc2733569')
|
2023-04-02 11:04:23 +08:00
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm644 'linux-modules-cleanup.conf' "${pkgdir}/usr/lib/tmpfiles.d/linux-modules-cleanup.conf"
|
2023-04-02 11:05:50 +08:00
|
|
|
install -Dm644 10-linux-modules-pre.hook 61-linux-modules-post.hook -t "${pkgdir}/usr/share/libalpm/hooks/"
|
2023-04-02 11:04:23 +08:00
|
|
|
install -Dm755 linux-modules-{save,restore} -t "${pkgdir}/usr/share/libalpm/scripts/"
|
|
|
|
}
|