summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d5a08867c27cb9d2a733ef8ebe10cff15a41a07 (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
# Maintainer: Reese Wang <thuwrx10 at gmail dot com>

pkgname=mkinitcpio-etc
pkgver=r3.4c6714f
pkgrel=1
pkgdesc="mkinitcpio hook for mounting NFS share on /etc"
url="https://github.com/ReeseWang/mkinitcpio-etc"
arch=(any)
license=('GPL3')
makedepends=('git')
depends=('syslinux')
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
	cd ${srcdir}/${pkgname}
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	install -m755 -D ${srcdir}/${pkgname}/${pkgname}.install ${pkgdir}/usr/lib/initcpio/install/etc
	install -m755 -D ${srcdir}/${pkgname}/${pkgname}.hook ${pkgdir}/usr/lib/initcpio/hooks/etc
}