blob: 0d9bcc4fd09c4a75cf8ddf518464957212657c84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Leon Kowarschick <thereal.elkowar at gmail dot com>
pkgname=pipr-git
pkgver=r124.f6d6673
pkgrel=1
conflicts=('pipr-bin')
makedepends=('rust' 'cargo' 'git')
depends=('gcc-libs' 'bubblewrap')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="A commandline-utility to interactively build complex shell pipelines"
license=('MIT')
source=('pipr-git::git+https://github.com/Elkowar/pipr.git#branch=release')
url="https://gitlab.com/Elkowar/pipr"
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/pipr-git"
cargo build --release --all-features
}
package() {
cd "$srcdir/pipr-git"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 755 target/release/pipr -t "${pkgdir}/usr/bin"
}
|