aboutsummaryrefslogtreecommitdiffstats
path: root/testing/open-plc-utils/APKBUILD
blob: 9b5235bc23b67e6f29d25dba8066e950aaf18643 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=open-plc-utils
pkgver="0_git20181025"
pkgrel=0
pkgdesc="Qualcomm Atheros Open Powerline Toolkit"
url="https://github.com/qca/open-plc-utils"
arch="all"
license="BSD-3-Clause-Clear"
options="suid"
subpackages="$pkgname-doc"
_githash="32408520fcebe785983a68e39ec83830a3005779"
source="https://github.com/qca/$pkgname/archive/$_githash.zip
	gcc-10.patch"
builddir="$srcdir/$pkgname-$_githash"

prepare()
{
	default_prepare

	sed -i \
		-e 's|/usr/local/|/usr/|g' \
		-e 's|/man/man1|/share/man/man1|g' \
		"make.def"
}

build()
{
	make ROOTFS="$pkgdir"
}

check()
{
	make ROOTFS="$pkgdir" check
}

package()
{
	make ROOTFS="$pkgdir" install manuals
}

sha512sums="
cd011f6e0738093b99873a341d6a0385ff21c99e1c6d51244678b6bb616a0b9b7bdf96a5cfb81200787f5eb2537b3ee344e60fdc56a7be9ace35c39cfc59f614  32408520fcebe785983a68e39ec83830a3005779.zip
5df13bf103b6aae093f330d7da4860eb6637485ee63cbd6c0149633239e47d19fd9504671d7096c4e0e449b19c215b8da048b0382305c5507d770ebf176abe84  gcc-10.patch
"