summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Feletto2020-12-29 16:52:38 +0100
committerAndrea Feletto2020-12-29 16:52:38 +0100
commit76934bb115071e9e8973f3513bed6377ac6a41f1 (patch)
treed945c6fe1850043eec466fab05af6ec7d4d950ac
parent072ed80bebd04d4fc55fd41bc8e4d3811f961f03 (diff)
downloadaur-76934bb115071e9e8973f3513bed6377ac6a41f1.tar.gz
update
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD15
2 files changed, 9 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8baf1b1f155..a0d3318006d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = heliocron-git
pkgdesc = Execute tasks relative to sunset, sunrise and other solar events.
- pkgver = 0.4.0.r4.g89ae185
+ pkgver = 0.5.0.r0.g7fd3b66
pkgrel = 1
url = https://github.com/mfreeborn/heliocron
arch = x86_64
license = Apache
license = MIT
- makedepends = rust
+ makedepends = cargo
provides = heliocron
conflicts = heliocron-bin
source = git+https://github.com/mfreeborn/heliocron
diff --git a/PKGBUILD b/PKGBUILD
index f0f6c7dd027..4e20ae7b9b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,9 @@
-# Heliocron
# Maintainer: Andrea Feletto <andrea@andreafeletto.com>
pkgname=heliocron-git
_pkgname=${pkgname%-*}
-pkgver=0.4.0.r4.g89ae185
+pkgver=0.5.0.r0.g7fd3b66
pkgrel=1
pkgdesc='Execute tasks relative to sunset, sunrise and other solar events.'
arch=('x86_64')
@@ -12,12 +11,12 @@ url='https://github.com/mfreeborn/heliocron'
license=('Apache' 'MIT')
provides=('heliocron')
conflicts=('heliocron-bin')
-makedepends=('rust')
+makedepends=('cargo')
source=("git+https://github.com/mfreeborn/$_pkgname")
sha256sums=('SKIP')
pkgver() {
- cd "$_pkgname"
+ cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}
@@ -26,9 +25,7 @@ build() {
env CARGO_INCREMENTAL=0 cargo build --release
}
-#
# currently not all tests are passed, but binary works
-#
# check() {
# cd "$srcdir/$_pkgname"
# env CARGO_INCREMENTAL=0 cargo test --release
@@ -36,6 +33,8 @@ build() {
package() {
cd "$srcdir/$_pkgname"
- install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ install -Dm755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
+ install -Dm644 'LICENSE-APACHE' -t "$pkgdir/usr/share/licenses/$_pkgname"
+ install -Dm644 'LICENSE-MIT' -t "$pkgdir/usr/share/licenses/$_pkgname"
+ install -Dm644 'README.md' -t "$pkgdir/usr/share/doc/$_pkgname"
}
-