aboutsummaryrefslogtreecommitdiffstats
path: root/community/ifstate/APKBUILD
blob: 98c1357724b623e2448307dfcf7f7a12174f7a43 (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
36
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=ifstate
pkgver=1.8.0
pkgrel=0
pkgdesc="Manage host interface settings in a declarative manner"
url="https://ifstate.net/"
arch="noarch"
license="GPL-3.0-or-later"
depends="iproute2
	python3
	py3-jsonschema
	py3-pyroute2
	py3-yaml"
makedepends="py3-setuptools"
options="!check" # no tests available
source="https://files.pythonhosted.org/packages/source/i/ifstate/ifstate-$pkgver.tar.gz
	ifstate.conf
	ifstate.initd
	"
subpackages="$pkgname-openrc"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm755 "$srcdir"/ifstate.conf "$pkgdir"/etc/modprobe.d/ifstate.conf
	install -Dm755 "$srcdir"/ifstate.initd "$pkgdir"/etc/init.d/ifstate
}

sha512sums="
f33bd472bd5a36e2dd0f8a8799c7c8904f6420872de03eaa25beb4a30d84d3150605265e1a1698f24aa7a2bcc6207d00c04ad0d4fd7b82d5c5f018f55768943a  ifstate-1.8.0.tar.gz
dfc31dc7452c63ec18d368803ffb3bef1cd96d98345d0c5ef1baeb8b2819130b504d3e6e82d99ee86fa18d4576b7927d0b80d6d79f9f20e388e07faa09a87285  ifstate.conf
e583c764c65dbf00ce6a4269cef5d8a78c2ec47851671cc25bbebd2d6095c42f0a10eccfd021728e05b3b67d8b950f9e4359da63226da551b8dc5ebd5d8aa0ef  ifstate.initd
"