blob: 3cfbc3ab3237769c6c62ea34ecc294d305ecbce6 (
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
|
# Contributor Andrew Gregory <andrew.gregory.8@gmail.com>
_name=openrc-arch-services
pkgname=openrc-arch-services-git
pkgdesc="Arch Linux service scripts for openrc"
pkgver=r29.2a1af95
pkgrel=1
url="https://github.com/andrewgregory/openrc-arch-services"
license=('GPL-2.0-only')
makedepends=('git')
arch=('any')
# backup=() #fill in below
source=("git+https://github.com/andrewgregory/openrc-arch-services.git")
md5sums=('SKIP')
_sysconfdir='etc/openrc' # DO NOT include leading '/'
pkgver() {
cd "$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$_name"
make SBINDIR=/usr/bin RUNSCRIPT=openrc-run
}
package() {
cd "$_name"
make SYSCONFDIR="$_sysconfdir" DESTDIR="$pkgdir" install
# add conf.d files to backup
cd "$pkgdir"
backup=("$_sysconfdir"/conf.d/*)
}
|