summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0359317cce5fc60951abb21d5f18fccbe4a09e80 (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
# Maintainer: Alex Flierl <shad0w73 at freenet dot de>

_gitlab='https://gitlab.alpinelinux.org'
_gitlab_api_path="${_gitlab}/api/v4/projects/1/repository/files/community%2Fadguardhome%2F"
_commit=2c7287604b232997acec822780e359cd4ca11452
pkgname=adguardhome-openrc
pkgver=20250416
pkgrel=3
pkgdesc='OpenRC adguardhome init script'
arch=('any')
url="${_gitlab}/alpine/aports/-/tree/master/community/adguardhome"
# See https://gitlab.alpinelinux.org/alpine/aports/-/issues/9074
license=('unknown')
depends=('openrc' 'adguardhome')
provides=('init-adguardhome')
conflicts=('init-adguardhome')
backup=('etc/conf.d/adguardhome')
source=("adguardhome.confd::${_gitlab_api_path}adguardhome.confd/raw?ref=${_commit}"
        "adguardhome.initd::${_gitlab_api_path}adguardhome.initd/raw?ref=${_commit}")
sha256sums=('2e8de4fe94c4a98e015ab5087670e3a9d406623ef518c57575c7240ded91540d'
            '004274c6ec39c56a21f24281d550f81288db0669e9ea1a9980423059ceeeaf3b')

package() {
	install -Dm 644 "${srcdir}"/adguardhome.confd "${pkgdir}"/etc/conf.d/adguardhome
	install -Dm 755 "${srcdir}"/adguardhome.initd "${pkgdir}"/etc/init.d/adguardhome
}