diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -1,27 +1,22 @@ # Maintainer: Pierre Mavro <deimosfr@gmail.com> pkgname=jeedom-status -pkgver=1.0.4 +pkgver=2.0.0 pkgrel=1 pkgdesc="Add Jeedom global status to your favorite desktop bar (i3blocks, polybar, etc...)" arch=(x86_64) url="https://github.com/deimosfr/jeedom-status" license=('GPL') -makedepends=(git go) +makedepends=(git cargo) source=("https://github.com/deimosfr/jeedom-status/archive/v$pkgver.tar.gz") build() { cd "$pkgname-$pkgver" - export CGO_LDFLAGS="${LDFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - go build -o jeedom-status main.go + cargo build --release } package() { cd "$pkgname-$pkgver" - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" } -md5sums=('49117a156f7eaefd1a2ae3a0e8d18e46') +sha256sums=('f6eca707b50ed0700edb9b4991137e7a96b1ebf0966ee2ae46fce39fffa6e8f5') |