mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-24 01:16:05 +01:00
24 lines
738 B
Bash
24 lines
738 B
Bash
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||
|
_pkgname=ssh-key-yoda
|
||
|
_reponame=arch
|
||
|
pkgname="de-p1st-$_pkgname"
|
||
|
pkgver=0.0.1
|
||
|
pkgrel=1
|
||
|
pkgdesc="ssh authorized_keys for user yoda"
|
||
|
arch=('any')
|
||
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
||
|
license=('MIT')
|
||
|
depends=('openssh')
|
||
|
makedepends=('git') # to fetch source(s) via git
|
||
|
provides=('de-p1st-ssh-key')
|
||
|
conflicts=('de-p1st-ssh-key')
|
||
|
source=("git+${url}.git")
|
||
|
sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
|
||
|
|
||
|
package() {
|
||
|
cd "${_reponame}/pkg/${pkgname}"
|
||
|
|
||
|
install -dm0700 "$pkgdir"/home/yoda/.ssh/
|
||
|
install -m0600 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
|
||
|
}
|