archlinux-pkgbuilds/scaphandre/PKGBUILD

29 lines
843 B
Text
Raw Normal View History

2021-02-01 17:11:33 +01:00
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
pkgname=scaphandre
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)
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)
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: