blob: 4b5720a22c7a27f5d2590aa0772a528254188f63 (
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
|
# Maintainer: Rock Neurotiko <rockneurotiko AT GMAIL>
pkgname=regect-git
_pkgname=regect
pkgver=0.2.5
pkgrel=1
pkgdesc="regex 101 like cli tool."
arch=('x86_64')
url="https://github.com/kloki/regect"
license=('MIT')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
makedepends=('cargo' 'git')
source=("$pkgname::git+$url#branch=master")
sha256sums=("SKIP")
# No tags, so we don't override for now
# pkgver() {
# cd "$pkgname"
# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
# }
build() {
cd "${pkgname}"
cargo build --release
}
package() {
cd "${pkgname}"
install -Dm755 target/release/regect -t "${pkgdir}/usr/bin" || return 1
}
|