summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ad862808d6c3cc04a2f979398e42f04f3263fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: allddd <allddd (at) proton (dot) me>

pkgname=mkinitcpio-extras
pkgver=1
pkgrel=1
pkgdesc='Collection of mkinitcpio hooks for busybox based initramfs'
arch=('any')
url='https://gitlab.com/allddd/mkinitcpio-extras'
license=('GPL-2.0-only')
depends=('mkinitcpio')
optdepends=(
    'mkinitcpio-nfs-utils: for netconf'
    'dropbear: for dropbear'
)
conflicts=(
    'mkinitcpio-netconf'
    'mkinitcpio-dropbear'
)
source=("${url}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
sha256sums=('08817c88f6d6ad94c8d80564c8ac2eeb8414f4a86cb352585075e357b6648ff7')

package() {
    cd "${srcdir}/${pkgname}-v${pkgver}"
    for NAME in $(find * -type d); do
        install -Dm644 "./${NAME}/${NAME}_hook" "${pkgdir}/usr/lib/initcpio/hooks/${NAME}"
        install -Dm644 "./${NAME}/${NAME}_install" "${pkgdir}/usr/lib/initcpio/install/${NAME}"
    done
}

# vim: ts=4 sw=4 et: