blob: e01e0224fe8210949d1b9e49a7b86fbcce58e7b6 (
plain)
1 # Description: Initrd builder
2 # URL: https://oper.io/src/?p=nullspoon/mkinitramfs.git
3 # Maintainer: Aaron Ball <nullspoon at oper dot io>
4 # Depends on: cryptsetup
5
6 name=mkinitramfs
7 version=v1.0
8 release=1
9 source=()
10 gitsource=https://oper.io/src/nullspoon/mkinitramfs.git
11
12 build() {
13 if [[ -d ${name} ]]; then
14 cd ${name}
15 git reset --hard
16 git pull ${gitsource}
17 else
18 git clone ${gitsource} ${name}
19 cd ${name}
20 fi
21
22 git checkout ${version}
23
24 cp mkinitramfs /usr/bin/
25
26 if [[ ! -d /usr/share/mkinitramfs ]]; then
27 mkdir /usr/share/mkinitramfs
28 fi
29 cp init /usr/share/mkinitramfs
30 }
31
32 # vim: set ft=sh ts=2 et:
|