From 542d94a74dfc443a7bcd52d68e1487d923038bdc Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 2 Aug 2020 17:33:39 +0200 Subject: [PATCH] fix: upgrade to v0.2.0 --- .SRCINFO | 12 ++++++------ PKGBUILD | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 027be42..2744d25 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = flucky pkgdesc = A lightweight golang program to read values from different sensors - pkgver = v0.1.0 - pkgrel = 3 - url = https://github.com/volker-raschek/flucky - arch = x86_64 + pkgver = v0.2.0 + pkgrel = 1 + url = https://git.cryptic.systems/volker.raschek/flucky + arch = any license = Apache 2.0 makedepends = git makedepends = go makedepends = make - source = git+https://github.com/volker-raschek/flucky#tag=v0.1.0 - sha256sums = SKIP + source = https://git.cryptic.systems/volker.raschek/flucky/archive/v0.2.0.tar.gz + sha512sums = 33b5551804ce2a4c0c62bf15287a2b4c2365bd15b4fd8d90e83d22e073f2ab4959e664e9a59c7f43b0243dd627a0b34741fc87a7a5fe4657a340a82c413787cb pkgname = flucky diff --git a/PKGBUILD b/PKGBUILD index 787325c..c96d322 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,24 +1,25 @@ # Maintainer: Markus Pesch pkgname=flucky -pkgver=v0.1.0 -pkgrel=3 +pkgver=v0.2.0 +pkgrel=1 pkgdesc='A lightweight golang program to read values from different sensors' -arch=('x86_64') -url=https://github.com/volker-raschek/flucky +arch=('any') +url=https://git.cryptic.systems/volker.raschek/flucky license=('Apache 2.0') makedepends=('git' 'go' 'make') -source=("git+https://github.com/volker-raschek/flucky#tag=${pkgver}") -sha256sums=('SKIP') +source=("https://git.cryptic.systems/volker.raschek/flucky/archive/${pkgver}.tar.gz") +sha512sums=('33b5551804ce2a4c0c62bf15287a2b4c2365bd15b4fd8d90e83d22e073f2ab4959e664e9a59c7f43b0243dd627a0b34741fc87a7a5fe4657a340a82c413787cb') build() { GOBIN=${HOME}/go/bin PATH=${GOBIN}:${PATH} go get -u github.com/go-bindata/go-bindata/... - make -C "${srcdir}/${pkgname}" bin/linux/amd64/${pkgname} VERSION=${pkgver} + make --directory "${srcdir}/${pkgname}" bin/tmp/${pkgname} VERSION=${pkgver} } package() { - install -Dm4755 "${srcdir}/${pkgname}/bin/linux/amd64/flucky" "${pkgdir}/usr/bin/flucky" - install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} + install -D --mode 4755 "${srcdir}/${pkgname}/bin/tmp/${pkgname}" "${pkgdir}/usr/bin/flucky" + install -D --mode 644 "${srcdir}/${pkgname}/systemd/flucky.service" "${pkgdir}/usr/lib/system/systemd/flucky.service" + install -D --mode 644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} \ No newline at end of file