archlinux-pkgbuilds/scaphandre/PKGBUILD
2021-04-16 17:14:44 +02:00

28 lines
843 B
Bash

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