initial import
This commit is contained in:
64
dkms/PKGBUILD
Normal file
64
dkms/PKGBUILD
Normal file
@@ -0,0 +1,64 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=dkms
|
||||
pkgver=2.8.4
|
||||
_debver=2.8.4
|
||||
_debrel=3
|
||||
pkgrel=3
|
||||
pkgdesc='Dynamic Kernel Modules System'
|
||||
arch=('any')
|
||||
url='https://github.com/dell/dkms'
|
||||
license=('GPL-2')
|
||||
depends=('bash' 'kmod' 'gcc' 'make' 'patch')
|
||||
makedepends=('quilt')
|
||||
optdepends=('linux-libre-lts-headers: build modules against the Hyperbola kernel')
|
||||
backup=('etc/dkms/framework.conf')
|
||||
install=$pkgname.install
|
||||
source=("https://github.com/dell/dkms/archive/refs/tags/v$pkgver.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/d/dkms/dkms_$_debver-$_debrel.debian.tar.xz"
|
||||
'hook.install'
|
||||
'hook.remove'
|
||||
'hook.sh'
|
||||
'0001-Revert-Make-newly-installed-modules-available-immedi.patch')
|
||||
sha512sums=('1b8b987b239db8cf00f367ee4f5faf13dc41b450f09fb046dc719e51d6a762d6b700bf41156d8011c3ea7e139064119d6717b60c1bf7fa0a75ea1fc63887baa5'
|
||||
'54abdc6e00836e6589bfba29cbfb332fdd815b6d90aaa12566259c92b46152525346b3e8a9c02d06e84b56782046408639aba01254813bd4ff970de45d2c7add'
|
||||
'c3378f9f08353404e548ae58b6faae11ceb61f54f39197963b32aad581b7162ac805a892e1424dcb16e3efd6755b23690d86188369baaa10e37ebe2bca80788e'
|
||||
'8beb2293dbd2302e8ac64667b4e08982967562ee4282b16e91329fcb53f6cfd97a4986d8886c4303c24eb22557c488fb0859087eccf7eadce97200e8a7e5087e'
|
||||
'1848e18a19ad8e28a30a9ddbfdaee3dc4b3f13ef9b3398bf2eaf57d20e5ce5395a85957676840ed344afea2dca9a3f7ca909bcf833971476391b18fa7d7efd24'
|
||||
'312da3a4a5d761381afb2e58a1c0f2766cd069d9de2319e637ef02ef86d9c8cf2b0961155a8000ad0a5ab218b440c8d83aedf56a6b7a29985fc7b33611bf379e')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian/patches/* debian/patches
|
||||
|
||||
quilt push -av
|
||||
else
|
||||
patch -p1 -i ../0001-Revert-Make-newly-installed-modules-available-immedi.patch
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
# alpm hook
|
||||
install -D -m 644 hook.install "$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook"
|
||||
install -D -m 644 hook.remove "$pkgdir/usr/share/libalpm/hooks/70-dkms-remove.hook"
|
||||
install -D -m 755 hook.sh "$pkgdir/usr/lib/dkms/alpm-hook"
|
||||
# upstream installer
|
||||
cd $pkgname-$pkgver
|
||||
# we don't need kconf files, so we install them outside $pkgdir
|
||||
make \
|
||||
DESTDIR="$pkgdir" \
|
||||
BASHDIR="$pkgdir/usr/share/bash-completion/completions" \
|
||||
KCONF="$srcdir"/kconf \
|
||||
install
|
||||
|
||||
install -D -m 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user