blob: 22a7f326d9fc657e59de535439c919bf1112d1cc (
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: Kedap <kedap.dev at protonmail dot com>
pkgname=sensei-git
_pkgname=sensei
pkgver=1.2.8.151.94aeae1
pkgrel=2
pkgdesc="Sensei is a simple command line tool to open documentation for any crate in crates.io."
arch=('i686' 'x86_64') # Delimited for cargo/rustc
url="https://github.com/edfloreshz/sensei"
license=('GPL2')
depends=()
makedepends=('cargo' 'git')
provides=('sns')
conflicts=('sensei' 'sns')
source=("sensei::git+https://github.com/edfloreshz/sensei.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
echo "1.2.8.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
cargo build --release --locked
}
package() {
cd "$_pkgname"
install -Dm755 target/release/sns "$pkgdir"/usr/bin/sns
}
|