From 5e1600a1795bea9515acb90aba8493473a2aa19a Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 1 Feb 2021 17:11:33 +0100 Subject: [PATCH] Initial upload: scaphandre 0.1.1-1 --- scaphandre/.SRCINFO | 14 ++++++++++++++ scaphandre/PKGBUILD | 28 ++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 scaphandre/.SRCINFO create mode 100644 scaphandre/PKGBUILD diff --git a/scaphandre/.SRCINFO b/scaphandre/.SRCINFO new file mode 100644 index 0000000..1b01a74 --- /dev/null +++ b/scaphandre/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = scaphandre + pkgdesc = Electrical power consumption metrology agent + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/hubblo-org/scaphandre/ + arch = x86_64 + license = Apache + makedepends = rust + depends = gcc-libs + source = scaphandre-0.1.1.tar.gz::https://github.com/hubblo-org/scaphandre/archive/v0.1.1.tar.gz + sha512sums = 882bb281f3c3ea8be60b26b7fdc5d24e0e0f5b0589a356d4e76b6e9505058bcb1a5bd8c2c89a0ddb3e914b076e7e0462bda1a4f7d7acc0239c01c4de2082c8be + +pkgname = scaphandre + diff --git a/scaphandre/PKGBUILD b/scaphandre/PKGBUILD new file mode 100644 index 0000000..89f21bb --- /dev/null +++ b/scaphandre/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Cedric Girard + +pkgname=scaphandre +pkgver=0.1.1 +pkgrel=1 +pkgdesc="Electrical power consumption metrology agent" +arch=('x86_64') +url="https://github.com/hubblo-org/scaphandre/" +license=(Apache) +depends=('gcc-libs') +makedepends=('rust') +source=($pkgname-$pkgver.tar.gz::https://github.com/hubblo-org/scaphandre/archive/v${pkgver}.tar.gz) +sha512sums=('882bb281f3c3ea8be60b26b7fdc5d24e0e0f5b0589a356d4e76b6e9505058bcb1a5bd8c2c89a0ddb3e914b076e7e0462bda1a4f7d7acc0239c01c4de2082c8be') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + cargo build --release +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 target/release/scaphandre "$pkgdir"/usr/bin/scaphandre + install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md +} + +# vim:set ts=2 sw=2 et: