diff options
author | Polochon-street | 2021-07-19 20:36:09 +0200 |
---|---|---|
committer | Polochon-street | 2021-07-19 20:36:09 +0200 |
commit | fccb8c8a773c6c4e515c502a728a5ac441456c62 (patch) | |
tree | 63fb21ea12950ce5ee4889e135f76556e528f085 | |
parent | aaa870b05adaf7cc5f8574e46163b14817c57ded (diff) | |
download | aur-blissify-git.tar.gz |
Some PKGBUILD improvements
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 14 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = blissify-git pkgdesc = A tool to analyze an MPD audio library and make smart playlists - pkgver = 0.1.6 - pkgrel = 2 + pkgver = 0.1.7.r16.g054bc79 + pkgrel = 1 url = https://github.com/Polochon-street/blissify-rs arch = x86_64 license = GPL @@ -9,7 +9,7 @@ pkgbase = blissify-git makedepends = nasm makedepends = clang options = !lto - source = git://github.com/Polochon-street/blissify-rs + source = blissify-git::git+https://github.com/Polochon-street/blissify-rs sha512sums = SKIP pkgname = blissify-git @@ -1,8 +1,7 @@ # Maintainer: Polochon_street <polochonstreet at gmx dot fr> pkgname=blissify-git -_gitname=blissify-rs -pkgver=0.1.6 -pkgrel=2 +pkgver=0.1.7.r16.g054bc79 +pkgrel=1 pkgdesc="A tool to analyze an MPD audio library and make smart playlists" arch=('x86_64') url="https://github.com/Polochon-street/blissify-rs" @@ -10,22 +9,27 @@ license=('GPL') depends=() makedepends=('cargo' 'nasm' 'clang') options=('!lto') -source=("git://github.com/Polochon-street/blissify-rs") +source=("$pkgname::git+https://github.com/Polochon-street/blissify-rs") sha512sums=('SKIP') +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { - cd "$_gitname" + cd "$pkgname" cargo build --release --locked } check() { - cd "$_gitname" + cd "$pkgname" cargo test --release --locked } package() { - cd "$_gitname" + cd "$pkgname" install -Dm 755 target/release/blissify -t "${pkgdir}/usr/bin" } |