aboutsummaryrefslogtreecommitdiff
path: root/initscripts-phillid-git/PKGBUILD
blob: 8a4bc340ccffe354042ff1bfdbc9f0225e1070cd (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
31
32
33
34
35
# Maintainer : David Phillips <david sighup d.t nz>

pkgname=initscripts-phillid-git
pkgver=r11.a078a88
pkgrel=1
pkgdesc='Small collection of initscripts for Arch Linux'
arch=('any')
url='https://github.com/phillid/initscripts'
license=('unknown')
conflicts=('initscripts-phillid')
depends=() # FIXME
optdepends=() # FIXME
backup=('etc/openrc/conf.d')
source=("$pkgname::git+https://github.com/phillid/initscripts.git")
sha512sums=('SKIP')

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

build() {
    cd "${pkgname}"
    make
}

package() {
    cd "${pkgname}"

    make DESTDIR="${pkgdir}" OPENRC_DIR="/etc/openrc" install

    # trick taken from openrc-arch-services-git
    cd "${pkgdir}"
    backup=("etc/openrc/conf.d/"*)
}