summaryrefslogtreecommitdiff
path: root/pcr/open-plc-utils
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-11-24 22:04:21 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2018-11-24 22:04:29 +0100
commit1466dd33ece0e31a8cb51d28fce7199fd690edd6 (patch)
tree7a3938863c20cfd147268b346bd51276745a3c87 /pcr/open-plc-utils
parent6e8e5298d3f423b6d349f7e919e34082c383db10 (diff)
PCR: Add open-plc-utils
This package was updated from AUR Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/open-plc-utils')
-rw-r--r--pcr/open-plc-utils/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/open-plc-utils/PKGBUILD b/pcr/open-plc-utils/PKGBUILD
new file mode 100644
index 000000000..50859ada3
--- /dev/null
+++ b/pcr/open-plc-utils/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: (AUR) Mantas Mikulėnas <grawity@gmail.com>
+# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+pkgname=open-plc-utils
+# open-plc-utils has releases but currently it doesn't seem
+# to have any clear versioning scheme definition. Because
+# of that pkgver calculed dynamically, from the number of
+# commits. However, if the pkgver variable is not defined
+# as such, makepkg will complain about it:
+# ==> ERROR: pkgver is not allowed to be empty.
+# This is why we have to define a bogus variable here.
+pkgver=r229.g18a17597
+pkgrel=1
+pkgdesc="Qualcomm Atheros Open Powerline Toolkit for HomePlug AV"
+arch=(armv7h i686 x86_64)
+url=https://github.com/qca/open-plc-utils
+license=(custom:Clear_BSD)
+_tag=OSRQCA-929
+source=("git+https://github.com/qca/open-plc-utils#tag=$_tag")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ echo r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd $pkgname
+ make
+}
+
+package() {
+ cd $pkgname
+ make ROOTFS="$pkgdir" BIN="$pkgdir"/usr/bin install manuals
+ mv "$pkgdir"/usr/bin/amptest{,.plc}
+ mv "$pkgdir"/usr/bin/pev{,.plc}
+ install -D -m 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}