2021-02-01 17:11:33 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
|
|
|
|
pkgname=scaphandre
|
2021-04-16 17:14:44 +02:00
|
|
|
pkgver=0.3.0
|
2021-02-01 17:11:33 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Electrical power consumption metrology agent"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/hubblo-org/scaphandre/"
|
|
|
|
license=(Apache)
|
2021-04-16 17:14:44 +02:00
|
|
|
depends=('gcc-libs' 'zlib' 'openssl')
|
2021-02-01 17:11:33 +01:00
|
|
|
makedepends=('rust')
|
|
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/hubblo-org/scaphandre/archive/v${pkgver}.tar.gz)
|
2021-04-16 17:14:44 +02:00
|
|
|
sha512sums=('b77323ed4b55841651bfd1e7d692350a1d912ee48e5f9f1a1e49d24754eeba86972d32bc0963e2102084e410beb905ad721fb178cb73635c627fb76c5e575d44')
|
2021-02-01 17:11:33 +01:00
|
|
|
|
|
|
|
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:
|