diff options
author | wojciechkepka | 2020-05-06 18:56:27 +0200 |
---|---|---|
committer | wojciechkepka | 2020-05-06 18:56:27 +0200 |
commit | 322bdedd67ff299e060aa65991a75cd8720bc594 (patch) | |
tree | 21ba60d564bbe60d9412ab0567b6c3add054a835 | |
parent | 0c41fbf83e7a06d9773343823f2c6cfc32d12a82 (diff) | |
download | aur-322bdedd67ff299e060aa65991a75cd8720bc594.tar.gz |
More appropriate version with last git commit
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,11 @@ build() { cargo build --release } +pkgver() { + cd "$pkgname" + echo "$(git log -1 --format=%cd.%h --date=short|tr -d -)" +} + package() { cd "$pkgname" install -Dm755 "target/release/rustop" "$pkgdir/usr/bin/rustop" |