diff options
author | Andrea Feletto | 2020-12-29 16:52:38 +0100 |
---|---|---|
committer | Andrea Feletto | 2020-12-29 16:52:38 +0100 |
commit | 76934bb115071e9e8973f3513bed6377ac6a41f1 (patch) | |
tree | d945c6fe1850043eec466fab05af6ec7d4d950ac | |
parent | 072ed80bebd04d4fc55fd41bc8e4d3811f961f03 (diff) | |
download | aur-76934bb115071e9e8973f3513bed6377ac6a41f1.tar.gz |
update
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 9 insertions, 10 deletions
@@ -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 @@ -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" } - |