Add PKGBUILD

This commit is contained in:
Marko Korhonen 2024-05-09 11:15:42 +03:00
parent 4e13c76c55
commit 02fc6bb1c3
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 47 additions and 0 deletions

30
PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: Marko Korhonen <marko@korhonen.cc>
pkgname=mkinitcpio-dropbear
pkgver=0.0.4
pkgrel=1
pkgdesc='hook to install and enable the dropbear daemon in early userspace'
arch=(any)
url="https://github.com/grazzolini/$pkgname"
license=(GPL3)
depends=(dropbear psmisc)
optdepends=(
'mkinitcpio-netconf: Network interface configuration'
'mkinitcpio-ppp: PPP interface configuration'
'openssh: Allows the use of the same host keys used for normal access'
)
source=(
"dropbear_hook"
"dropbear_install"
"LICENSE"
)
changelog=ChangeLog
sha256sums=('6c529408125bd0c446162f8d4a16d7262d6b39896d8e6f87d364f7b299203315'
'51f44735be81a4488acd9b2b7713a3e61beddd9b167773db0e345adc3b8d693f'
'ac69d63ecc672c698582b0fc260dbfe42d71adcdab707f807c8e1113be11abd8')
package() {
install -Dm0644 dropbear_hook "$pkgdir/usr/lib/initcpio/hooks/dropbear"
install -Dm0644 dropbear_install "$pkgdir/usr/lib/initcpio/install/dropbear"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}