Skip to content

Commit 430c9ed

Browse files
committedOct 15, 2023
correct the code
1 parent acc4895 commit 430c9ed

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed
 

‎PKGBUILD

+6-20
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
# Maintainer: Bouteiller a2n Alan <a2n.dev@pm.me>
2+
23
pkgname=dracut-numlock
34
pkgver=1.0.0
45
pkgrel=1
5-
epoch=
66
pkgdesc="A dracut module which enables numlock in the early boot"
77
arch=('any')
88
url="https://github.com/bouteillerAlan/dracut-numlock/tree/v1.0.0"
99
license=('MIT')
10-
groups=()
11-
depends=()
12-
makedepends=()
13-
checkdepends=()
14-
optdepends=()
15-
provides=()
16-
conflicts=()
17-
replaces=()
18-
backup=()
19-
options=()
20-
install=
21-
changelog=
22-
source=("https://github.com/bouteillerAlan/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
23-
noextract=()
24-
md5sums=()
10+
source=("https://github.com/bouteillerAlan/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
2511
sha256sums=('3c25ea9ae560a71655b422b8f343c0865dcae1564a20c2824295f6b7a5d2587d')
26-
validpgpkeys=()
2712

2813
package() {
29-
cd "$pkgname-$pkgver"
30-
sudo cp -r 50numlock/ /usr/lib/dracut/modules.d/
31-
sudo dracut-rebuild
14+
cd "${pkgname}-${pkgver}"
15+
install -Dm 644 50numlock/module-setup.sh "${pkgdir}/usr/lib/dracut/modules.d/50numlock/module-setup.sh"
16+
install -Dm 644 50numlock/numlock.sh "${pkgdir}/usr/lib/dracut/modules.d/50numlock/numlock.sh"
3217
}
18+

0 commit comments

Comments
 (0)
Please sign in to comment.