diff options
author | orhun | 2020-10-03 22:35:12 +0300 |
---|---|---|
committer | orhun | 2020-10-03 22:35:12 +0300 |
commit | c7b10ff573c61d1f8f7a616acf6b9b6fca7d7dee (patch) | |
tree | 8c64fada30958d94edb41d1a98a6e3fd70172b70 | |
download | aur-c7b10ff573c61d1f8f7a616acf6b9b6fca7d7dee.tar.gz |
Initial upload: lipl-git 0.1.0.r23.g60835e5-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f866ad14c649 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = lipl-git + pkgdesc = Analyse the output over time of custom shell commands (git) + pkgver = 0.1.0.r23.g60835e5 + pkgrel = 1 + url = https://github.com/yxdunc/lipl + arch = x86_64 + license = unknown + makedepends = cargo + makedepends = git + provides = lipl + conflicts = lipl + conflicts = lipl-bin + source = git+https://github.com/yxdunc/lipl + sha512sums = SKIP + +pkgname = lipl-git + 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}" +} |