diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4798e7dd9339 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: orhun <orhunparmaksiz@gmail.com> +# https://github.com/orhun/pkgbuilds + +pkgname=lipl-git +pkgver=0.1.0.r23.g60835e5 +pkgrel=1 +pkgdesc="Analyse the output over time of custom shell commands (git)" +arch=('x86_64') +url="https://github.com/yxdunc/lipl" +license=('unknown') +makedepends=('cargo' 'git') +conflicts=("${pkgname%-git}" "${pkgname%-git}-bin") +provides=("${pkgname%-git}") +source=("git+${url}") +sha512sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${pkgname%-git}" + cargo build --release --locked --all-features +} + +check() { + cd "${pkgname%-git}" + cargo test --release --locked --all-features +} + +package() { + cd "${pkgname%-git}" + install -Dm 755 "target/release/${pkgname%-git}" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/${pkgname%-git}" +} |